Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 109.1 kB / 16.92 MB, free: 5.789 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 191.3 kB / 17.85 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.513/2.513, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 50.64 kB / 300.8 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1732, allocations: 49.45 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.4592/0.6325, allocations: 24.82 MB / 375 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03054/0.6631, allocations: 7.83 MB / 382.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01148/0.6747, allocations: 182.8 kB / 383 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03303/0.7077, allocations: 8.352 MB / 391.4 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01959/0.7274, allocations: 2.991 MB / 394.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009703/0.7371, allocations: 1.817 MB / 396.2 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02904/0.7662, allocations: 11.02 MB / 407.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0668/0.833, allocations: 23.49 MB / 430.7 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01968/0.8528, allocations: 5.888 MB / 436.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01982/0.8727, allocations: 6.522 MB / 443.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009719/0.8824, allocations: 1.715 MB / 444.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01601/0.8985, allocations: 2.128 MB / 446.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01096/0.9096, allocations: 3.359 MB / 450.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02748/0.9371, allocations: 6.354 MB / 456.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05239/0.9896, allocations: 22.99 MB / 479.7 MB, free: 4.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.264e-05/0.9897, allocations: 0 / 479.7 MB, free: 4.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.9897, allocations: 0 / 479.7 MB, free: 4.297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008879/0.9906, allocations: 0 / 479.7 MB, free: 4.297 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.08487/1.076, allocations: 13.45 MB / 493.1 MB, free: 6.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.288e-05/1.076, allocations: 8.031 kB / 493.1 MB, free: 6.742 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01144/1.087, allocations: 1.608 MB / 494.7 MB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0642/1.151, allocations: 6.223 MB / 0.4892 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0281/1.18, allocations: 7.08 MB / 0.4961 GB, free: 7.711 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001519/1.181, allocations: 0.7226 MB / 0.4968 GB, free: 6.984 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007507/1.189, allocations: 0.9568 MB / 0.4978 GB, free: 6.027 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08741/1.276, allocations: 16.17 MB / 0.5135 GB, free: 5.773 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008745/1.277, allocations: 15.83 kB / 0.5136 GB, free: 5.758 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006532/1.284, allocations: 404 kB / 0.5139 GB, free: 5.363 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001037/1.285, allocations: 0.5515 MB / 0.5145 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.832/2.117, allocations: 15.11 MB / 0.5292 GB, free: 115 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1543/2.271, allocations: 52.71 MB / 0.5807 GB, free: 78.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02797/2.299, allocations: 20.1 MB / 0.6003 GB, free: 56 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01047/2.31, allocations: 3.633 MB / 0.6039 GB, free: 52.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001192/2.311, allocations: 183.8 kB / 0.6041 GB, free: 52.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/2.311, allocations: 82.06 kB / 0.6041 GB, free: 52.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=447): time 4.324e-05/2.311, allocations: 0 / 0.6041 GB, free: 52.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=452): time 0.09345/2.405, allocations: 20.63 MB / 0.6243 GB, free: 31.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.615e-05/2.405, allocations: 98.94 kB / 0.6244 GB, free: 31.28 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01512/2.42, allocations: 4.493 MB / 0.6288 GB, free: 26.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001671/2.422, allocations: 97.7 kB / 0.6289 GB, free: 26.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005054/2.427, allocations: 4.207 MB / 0.633 GB, free: 22.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003334/2.43, allocations: 1.537 MB / 0.6345 GB, free: 20.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006753/2.437, allocations: 1.188 MB / 0.6356 GB, free: 19.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.396e-05/2.437, allocations: 301.1 kB / 0.6359 GB, free: 19.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007542/2.445, allocations: 3.069 MB / 0.6389 GB, free: 16.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01034/2.455, allocations: 5.211 MB / 0.644 GB, free: 10.15 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01768/2.473, allocations: 8.875 MB / 0.6527 GB, free: 312 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001244/2.473, allocations: 20 kB / 0.6527 GB, free: 292 kB / 430.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.03529/2.508, allocations: 9.862 MB / 0.6623 GB, free: 6.402 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/2.509, allocations: 32 kB / 0.6624 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001958/2.509, allocations: 76.34 kB / 0.6624 GB, free: 6.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005848/2.515, allocations: 1.411 MB / 0.6638 GB, free: 4.883 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00898/2.524, allocations: 1.384 MB / 0.6652 GB, free: 3.496 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03157/2.555, allocations: 12.68 MB / 0.6775 GB, free: 6.543 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009106/2.565, allocations: 359.4 kB / 0.6779 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002441/2.567, allocations: 296 kB / 0.6782 GB, free: 5.902 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01695/2.584, allocations: 3.889 MB / 0.682 GB, free: 2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002968/2.587, allocations: 454.4 kB / 0.6824 GB, free: 1.551 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03004/2.617, allocations: 8.518 MB / 0.6907 GB, free: 8.977 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02107/2.638, allocations: 6.252 MB / 0.6968 GB, free: 2.703 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.393e-05/2.638, allocations: 12 kB / 0.6968 GB, free: 2.691 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001744/2.639, allocations: 19.92 kB / 0.6969 GB, free: 2.672 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5588/3.197, allocations: 17.68 MB / 0.7141 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001548/3.198, allocations: 11 kB / 0.7141 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007891/3.205, allocations: 0.8029 MB / 0.7149 GB, free: 148 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007359/3.213, allocations: 1.295 MB / 0.7162 GB, free: 147.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001564/3.215, allocations: 106.9 kB / 0.7163 GB, free: 147.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02581/3.24, allocations: 11.57 MB / 0.7276 GB, free: 140.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/3.24, allocations: 11.75 kB / 0.7276 GB, free: 140.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03012/3.271, allocations: 11.19 MB / 0.7385 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005508/3.276, allocations: 1.095 MB / 0.7396 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002777/3.279, allocations: 95.38 kB / 0.7397 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006341/3.285, allocations: 230.1 kB / 0.7399 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002284/3.288, allocations: 334.3 kB / 0.7402 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001205/3.289, allocations: 132.2 kB / 0.7403 GB, free: 135.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01071/3.3, allocations: 3.103 MB / 0.7434 GB, free: 134.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.623e-06/3.3, allocations: 3.875 kB / 0.7434 GB, free: 134.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01615/3.316, allocations: 1.736 MB / 0.7451 GB, free: 133.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03661/3.353, allocations: 12.21 MB / 0.757 GB, free: 122.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05367/3.406, allocations: 14.97 MB / 0.7716 GB, free: 108.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-05/3.406, allocations: 0 / 0.7716 GB, free: 108.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01262/3.419, allocations: 3.927 MB / 0.7754 GB, free: 105.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01461/3.434, allocations: 1.06 MB / 0.7765 GB, free: 104.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1783/3.612, allocations: 72.56 MB / 0.8473 GB, free: 26.44 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01626/3.629, allocations: 6.513 MB / 0.8537 GB, free: 19.89 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01331/3.642, allocations: 2.13 MB / 0.8558 GB, free: 17.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01334/3.655, allocations: 3.553 MB / 0.8593 GB, free: 14.2 MB / 478.1 MB Notification: Performance of SimCode: time 2.936e-06/3.655, allocations: 0 / 0.8593 GB, free: 14.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7856/4.441, allocations: 140.8 MB / 0.9967 GB, free: 49.07 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.14/24.58, allocations: 4.938 kB / 0.9968 GB, free: 49.07 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches