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.001515/0.001515, allocations: 102.8 kB / 17.06 MB, free: 5.801 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.001813/0.001813, allocations: 200 kB / 18.01 MB, free: 4.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 48.06 kB / 350.9 MB, free: 3.691 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2962, allocations: 49.44 MB / 400.3 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02698/0.3232, allocations: 24.83 MB / 425.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01749/0.3407, allocations: 7.817 MB / 432.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005717/0.3465, allocations: 183.4 kB / 433.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01857/0.3651, allocations: 8.413 MB / 441.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.3759, allocations: 3.042 MB / 444.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005518/0.3814, allocations: 1.815 MB / 446.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01444/0.3959, allocations: 11.1 MB / 457.5 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03214/0.4281, allocations: 23.3 MB / 480.8 MB, free: 8.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01146/0.4396, allocations: 5.927 MB / 486.7 MB, free: 2.094 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01119/0.4508, allocations: 6.44 MB / 493.2 MB, free: 11.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005222/0.4561, allocations: 1.715 MB / 494.9 MB, free: 9.914 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006599/0.4627, allocations: 2.121 MB / 497 MB, free: 7.797 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005077/0.4678, allocations: 3.394 MB / 0.4887 GB, free: 4.395 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01269/0.4805, allocations: 6.35 MB / 0.4949 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0283/0.5089, allocations: 23.16 MB / 0.5175 GB, free: 6.785 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.5089, allocations: 0 / 0.5175 GB, free: 6.785 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.509, allocations: 3.938 kB / 0.5175 GB, free: 6.781 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000606/0.5096, allocations: 0 / 0.5175 GB, free: 6.781 MB / 446.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.03922/0.5488, allocations: 13.62 MB / 0.5308 GB, free: 9.039 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.5489, allocations: 12.03 kB / 0.5308 GB, free: 9.027 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005491/0.5544, allocations: 1.612 MB / 0.5324 GB, free: 7.402 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03583/0.5902, allocations: 6.326 MB / 0.5386 GB, free: 1.062 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.476/1.066, allocations: 7.266 MB / 0.5457 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004915/1.067, allocations: 0.7245 MB / 0.5464 GB, free: 111.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00342/1.07, allocations: 0.9518 MB / 0.5473 GB, free: 111.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03665/1.107, allocations: 16.17 MB / 0.5631 GB, free: 103.9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004333/1.107, allocations: 11.77 kB / 0.5631 GB, free: 103.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00306/1.11, allocations: 399.2 kB / 0.5635 GB, free: 103.6 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004941/1.111, allocations: 0.5641 MB / 0.564 GB, free: 103.3 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03219/1.143, allocations: 15.12 MB / 0.5788 GB, free: 88.18 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09313/1.236, allocations: 52.19 MB / 0.6298 GB, free: 35.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01612/1.252, allocations: 20.09 MB / 0.6494 GB, free: 13.64 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005027/1.258, allocations: 3.641 MB / 0.6529 GB, free: 9.992 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003509/1.258, allocations: 183.8 kB / 0.6531 GB, free: 9.809 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/1.258, allocations: 78.06 kB / 0.6532 GB, free: 9.723 MB / 462.1 MB Notification: Performance of pre-optimization done (n=447): time 6.142e-06/1.258, allocations: 4 kB / 0.6532 GB, free: 9.719 MB / 462.1 MB Notification: Performance of matching and sorting (n=452): time 0.04989/1.308, allocations: 20.76 MB / 0.6735 GB, free: 5.102 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/1.308, allocations: 94.95 kB / 0.6736 GB, free: 4.996 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006603/1.315, allocations: 4.501 MB / 0.678 GB, free: 484 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000767/1.315, allocations: 101.7 kB / 0.6781 GB, free: 376 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002881/1.318, allocations: 4.361 MB / 0.6823 GB, free: 12.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/1.32, allocations: 1.611 MB / 0.6839 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001785/1.322, allocations: 1.2 MB / 0.6851 GB, free: 9.238 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.007e-05/1.322, allocations: 301.1 kB / 0.6853 GB, free: 8.941 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004509/1.326, allocations: 3.061 MB / 0.6883 GB, free: 5.875 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005876/1.332, allocations: 5.215 MB / 0.6934 GB, free: 15.69 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/1.343, allocations: 8.872 MB / 0.7021 GB, free: 5.844 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.195e-05/1.343, allocations: 16 kB / 0.7021 GB, free: 5.828 MB / 0.4982 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01635/1.36, allocations: 9.884 MB / 0.7118 GB, free: 11.93 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/1.36, allocations: 32 kB / 0.7118 GB, free: 11.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/1.36, allocations: 68 kB / 0.7119 GB, free: 11.83 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003824/1.364, allocations: 1.415 MB / 0.7132 GB, free: 10.41 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005389/1.369, allocations: 1.384 MB / 0.7146 GB, free: 9.027 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01794/1.387, allocations: 12.68 MB / 0.727 GB, free: 12.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004786/1.392, allocations: 363.5 kB / 0.7273 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001081/1.393, allocations: 292 kB / 0.7276 GB, free: 11.44 MB / 0.5294 GB 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.008193/1.401, allocations: 3.889 MB / 0.7314 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/1.403, allocations: 488.9 kB / 0.7319 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2653/1.668, allocations: 8.499 MB / 0.7402 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01035/1.679, allocations: 6.247 MB / 0.7463 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/1.679, allocations: 11.75 kB / 0.7463 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-05/1.679, allocations: 23.48 kB / 0.7463 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02726/1.706, allocations: 17.43 MB / 0.7633 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.059e-05/1.706, allocations: 12.19 kB / 0.7633 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003123/1.709, allocations: 0.8065 MB / 0.7641 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003091/1.712, allocations: 1.286 MB / 0.7654 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003501/1.713, allocations: 105.5 kB / 0.7655 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/1.725, allocations: 11.56 MB / 0.7768 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/1.725, allocations: 6.969 kB / 0.7768 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/1.74, allocations: 11.22 MB / 0.7877 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002519/1.743, allocations: 1.111 MB / 0.7888 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006906/1.743, allocations: 88 kB / 0.7889 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/1.746, allocations: 235.7 kB / 0.7891 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006525/1.746, allocations: 326.2 kB / 0.7894 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002521/1.747, allocations: 147.8 kB / 0.7896 GB, free: 149 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003903/1.75, allocations: 3.099 MB / 0.7926 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/1.75, allocations: 0 / 0.7926 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006184/1.757, allocations: 1.736 MB / 0.7943 GB, free: 144.1 MB / 0.5294 GB 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.01664/1.773, allocations: 12.23 MB / 0.8062 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01184/1.785, allocations: 7.984 MB / 0.814 GB, free: 124.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/1.785, allocations: 4.188 kB / 0.814 GB, free: 124.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00576/1.791, allocations: 3.943 MB / 0.8179 GB, free: 120.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004931/1.796, allocations: 1.054 MB / 0.8189 GB, free: 119.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08601/1.882, allocations: 60.91 MB / 0.8784 GB, free: 55.74 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00683/1.889, allocations: 6.509 MB / 0.8848 GB, free: 49.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005296/1.894, allocations: 2.126 MB / 0.8868 GB, free: 47.06 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005598/1.9, allocations: 3.557 MB / 0.8903 GB, free: 43.51 MB / 0.5294 GB Notification: Performance of SimCode: time 1.002e-06/1.9, allocations: 0 / 0.8903 GB, free: 43.51 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4921/2.392, allocations: 139.2 MB / 1.026 GB, free: 120.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.58/24.98, allocations: 11.47 kB / 1.026 GB, free: 120.1 MB / 0.545 GB (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