Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001614/0.001614, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001775/0.001775, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001703, allocations: 48.41 kB / 328.1 MB, free: 3.746 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1242, allocations: 46.62 MB / 374.7 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.2835/0.4077, allocations: 24.97 MB / 399.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01953/0.4274, allocations: 7.712 MB / 407.4 MB, free: 8.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008381/0.4358, allocations: 160.5 kB / 407.5 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02365/0.4595, allocations: 8.418 MB / 416 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01483/0.4744, allocations: 3.096 MB / 419.1 MB, free: 56 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007335/0.4817, allocations: 1.794 MB / 420.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01852/0.5002, allocations: 11.21 MB / 432 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04353/0.5438, allocations: 23.34 MB / 455.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01247/0.5563, allocations: 5.997 MB / 461.4 MB, free: 9.012 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01358/0.5699, allocations: 6.533 MB / 467.9 MB, free: 2.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005877/0.5759, allocations: 1.723 MB / 469.6 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009673/0.5856, allocations: 2.125 MB / 471.8 MB, free: 14.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006319/0.5919, allocations: 3.461 MB / 475.2 MB, free: 11.14 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01519/0.6071, allocations: 6.432 MB / 481.7 MB, free: 4.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03701/0.6442, allocations: 23.19 MB / 0.493 GB, free: 13.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.6442, allocations: 0 / 0.493 GB, free: 13.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6442, allocations: 4 kB / 0.493 GB, free: 13.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007124/0.645, allocations: 0 / 0.493 GB, free: 13.41 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.05039/0.6954, allocations: 13.8 MB / 0.5065 GB, free: 15.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.052e-05/0.6955, allocations: 12.03 kB / 0.5065 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007506/0.703, allocations: 1.645 MB / 0.5081 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04198/0.745, allocations: 7.309 MB / 0.5153 GB, free: 6.504 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01942/0.7644, allocations: 6.514 MB / 0.5216 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001014/0.7655, allocations: 0.7345 MB / 0.5223 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005771/0.7713, allocations: 0.9724 MB / 0.5233 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04786/0.8192, allocations: 16.62 MB / 0.5395 GB, free: 13.49 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005577/0.8198, allocations: 15.94 kB / 0.5395 GB, free: 13.48 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00431/0.8241, allocations: 411.9 kB / 0.5399 GB, free: 13.07 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00081/0.8249, allocations: 0.5986 MB / 0.5405 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3145/1.139, allocations: 15.8 MB / 0.5559 GB, free: 134.9 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09849/1.238, allocations: 53.46 MB / 0.6082 GB, free: 101.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01791/1.256, allocations: 22.74 MB / 0.6304 GB, free: 80.85 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005826/1.262, allocations: 3.802 MB / 0.6341 GB, free: 77.99 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01845/1.28, allocations: 11.7 MB / 0.6455 GB, free: 66.21 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/1.28, allocations: 69.36 kB / 0.6456 GB, free: 66.13 MB / 478.1 MB Notification: Performance of pre-optimization done (n=357): time 5.39e-06/1.28, allocations: 0 / 0.6456 GB, free: 66.13 MB / 478.1 MB Notification: Performance of matching and sorting (n=362): time 0.0383/1.319, allocations: 17.65 MB / 0.6628 GB, free: 48.37 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/1.319, allocations: 86.25 kB / 0.6629 GB, free: 48.27 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006044/1.325, allocations: 4.773 MB / 0.6675 GB, free: 43.47 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006682/1.326, allocations: 81.7 kB / 0.6676 GB, free: 43.39 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/1.328, allocations: 4.65 MB / 0.6722 GB, free: 38.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/1.329, allocations: 1.314 MB / 0.6734 GB, free: 37.43 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001689/1.331, allocations: 1.191 MB / 0.6746 GB, free: 36.23 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.595e-05/1.331, allocations: 305.1 kB / 0.6749 GB, free: 35.93 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/1.334, allocations: 2.904 MB / 0.6777 GB, free: 33.02 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004433/1.339, allocations: 5.264 MB / 0.6829 GB, free: 26.65 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009028/1.348, allocations: 8.636 MB / 0.6913 GB, free: 16.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.635e-05/1.348, allocations: 24 kB / 0.6913 GB, free: 16.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01552/1.363, allocations: 9.632 MB / 0.7007 GB, free: 7.215 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/1.364, allocations: 43.94 kB / 0.7008 GB, free: 7.172 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/1.364, allocations: 76 kB / 0.7008 GB, free: 7.098 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003609/1.367, allocations: 1.438 MB / 0.7023 GB, free: 5.656 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005095/1.372, allocations: 1.33 MB / 0.7036 GB, free: 4.324 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01725/1.39, allocations: 12.7 MB / 0.716 GB, free: 7.355 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005835/1.396, allocations: 363.6 kB / 0.7163 GB, free: 7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001515/1.397, allocations: 304 kB / 0.7166 GB, free: 6.703 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 355 * 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 (689): * Single equations (assignments): 686 * 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.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009945/1.407, allocations: 3.924 MB / 0.7204 GB, free: 2.766 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001898/1.409, allocations: 480.9 kB / 0.7209 GB, free: 2.289 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/1.424, allocations: 6.757 MB / 0.7275 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01085/1.435, allocations: 5.588 MB / 0.7329 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-05/1.435, allocations: 12 kB / 0.7329 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.778e-05/1.435, allocations: 23.92 kB / 0.733 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03319/1.468, allocations: 15.45 MB / 0.7481 GB, free: 6.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.79e-05/1.468, allocations: 4 kB / 0.7481 GB, free: 6.289 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003093/1.471, allocations: 0.6709 MB / 0.7487 GB, free: 5.617 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003659/1.475, allocations: 1.302 MB / 0.75 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005413/1.476, allocations: 87.97 kB / 0.7501 GB, free: 4.227 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2838/1.759, allocations: 11.56 MB / 0.7614 GB, free: 169.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.759, allocations: 7.344 kB / 0.7614 GB, free: 169.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01759/1.777, allocations: 10.03 MB / 0.7712 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002978/1.78, allocations: 1.04 MB / 0.7722 GB, free: 165 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008421/1.781, allocations: 72.34 kB / 0.7722 GB, free: 165 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00242/1.783, allocations: 222 kB / 0.7725 GB, free: 164.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008289/1.784, allocations: 267.5 kB / 0.7727 GB, free: 164.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002837/1.784, allocations: 117.9 kB / 0.7728 GB, free: 164.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005899/1.79, allocations: 3.234 MB / 0.776 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.583e-06/1.79, allocations: 0 / 0.776 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008534/1.799, allocations: 1.701 MB / 0.7776 GB, free: 163.5 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (333): * Single equations (assignments): 330 * 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.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01731/1.816, allocations: 11.01 MB / 0.7884 GB, free: 158.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0124/1.829, allocations: 7.542 MB / 0.7958 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/1.829, allocations: 2.938 kB / 0.7958 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006993/1.836, allocations: 3.615 MB / 0.7993 GB, free: 154 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007832/1.844, allocations: 1.023 MB / 0.8003 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1017/1.945, allocations: 60.3 MB / 0.8592 GB, free: 94.25 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007842/1.953, allocations: 6.563 MB / 0.8656 GB, free: 87.64 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00557/1.959, allocations: 2.102 MB / 0.8676 GB, free: 85.53 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006089/1.965, allocations: 3.545 MB / 0.8711 GB, free: 81.98 MB / 0.5137 GB Notification: Performance of SimCode: time 1.052e-06/1.965, allocations: 0 / 0.8711 GB, free: 81.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4538/2.419, allocations: 135.2 MB / 1.003 GB, free: 145.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.53/22.95, allocations: 11.58 kB / 1.003 GB, free: 145.4 MB / 0.5137 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches