Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_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 trunk/package.mo): time 0.001786/0.001786, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001799, allocations: 72.11 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2958, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0182/0.314, allocations: 14.25 MB / 423.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.3251, allocations: 5.351 MB / 428.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002711/0.3278, allocations: 83.69 kB / 428.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003395/0.3313, allocations: 1.055 MB / 429.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004938/0.3363, allocations: 1.433 MB / 431 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002905/0.3392, allocations: 1.019 MB / 432 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006247/0.3454, allocations: 4.363 MB / 436.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004425/0.3499, allocations: 3.352 MB / 439.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003701/0.3536, allocations: 2.013 MB / 441.7 MB, free: 440 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004763/0.3584, allocations: 2.402 MB / 444.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001567/0.36, allocations: 0.5352 MB / 444.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002785/0.3628, allocations: 0.9213 MB / 445.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00179/0.3646, allocations: 1.363 MB / 446.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004378/0.369, allocations: 2.364 MB / 449.3 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.3803, allocations: 7.42 MB / 456.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.3803, allocations: 0 / 456.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3803, allocations: 0 / 456.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002421/0.3806, allocations: 0 / 456.7 MB, free: 1.375 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01654/0.3971, allocations: 5.146 MB / 461.9 MB, free: 12.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.566e-05/0.3972, allocations: 12.03 kB / 461.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001429/0.3986, allocations: 0.5344 MB / 462.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005176/0.4038, allocations: 0.935 MB / 463.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006734/0.4106, allocations: 2.84 MB / 466.2 MB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002395/0.4109, allocations: 254.8 kB / 466.4 MB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008313/0.4117, allocations: 347.8 kB / 466.8 MB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00891/0.4206, allocations: 4.584 MB / 471.4 MB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.791e-05/0.4207, allocations: 4 kB / 471.4 MB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003324/0.4211, allocations: 136 kB / 471.5 MB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001733/0.4212, allocations: 154.8 kB / 471.7 MB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007617/0.4289, allocations: 3.938 MB / 475.6 MB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02654/0.4554, allocations: 14.1 MB / 489.7 MB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008818/0.4643, allocations: 6.99 MB / 496.7 MB, free: 8.094 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003852/0.4682, allocations: 1.727 MB / 498.4 MB, free: 6.367 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009489/0.4777, allocations: 4.479 MB / 0.4911 GB, free: 1.746 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.746e-05/0.4778, allocations: 51.88 kB / 0.4912 GB, free: 1.688 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 5.03e-06/0.4778, allocations: 0 / 0.4912 GB, free: 1.688 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01843/0.4963, allocations: 7.845 MB / 0.4988 GB, free: 9.711 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.4964, allocations: 69.41 kB / 0.4989 GB, free: 9.629 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004431/0.5008, allocations: 2.661 MB / 0.5015 GB, free: 6.945 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002665/0.5011, allocations: 61.7 kB / 0.5015 GB, free: 6.879 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001505/0.5026, allocations: 1.686 MB / 0.5032 GB, free: 5.176 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000747/0.5034, allocations: 0.6545 MB / 0.5038 GB, free: 4.516 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006061/0.504, allocations: 331.5 kB / 0.5041 GB, free: 4.188 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5041, allocations: 301.1 kB / 0.5044 GB, free: 3.891 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001753/0.5059, allocations: 0.9097 MB / 0.5053 GB, free: 2.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002065/0.508, allocations: 1.31 MB / 0.5066 GB, free: 1.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003897/0.5119, allocations: 2.352 MB / 0.5089 GB, free: 15.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.318e-05/0.5119, allocations: 7.938 kB / 0.5089 GB, free: 15.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006129/0.518, allocations: 3.09 MB / 0.5119 GB, free: 11.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.5181, allocations: 8 kB / 0.5119 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/0.5181, allocations: 12 kB / 0.5119 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/0.5197, allocations: 0.5479 MB / 0.5125 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001818/0.5215, allocations: 427.3 kB / 0.5129 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.5318, allocations: 7.616 MB / 0.5203 GB, free: 3.027 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/0.5336, allocations: 87.94 kB / 0.5204 GB, free: 2.941 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002358/0.5338, allocations: 75.98 kB / 0.5205 GB, free: 2.867 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002255/0.5361, allocations: 1.165 MB / 0.5216 GB, free: 1.691 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006369/0.5367, allocations: 274.2 kB / 0.5219 GB, free: 1.422 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005668/0.5424, allocations: 2.89 MB / 0.5247 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.842e-05/0.5425, allocations: 23.94 kB / 0.5247 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.94e-05/0.5425, allocations: 11.94 kB / 0.5247 GB, free: 14.47 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.5425, allocations: 7.969 kB / 0.5247 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.5547, allocations: 6.362 MB / 0.5309 GB, free: 8.012 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.5548, allocations: 4.125 kB / 0.531 GB, free: 8.008 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.5561, allocations: 275.6 kB / 0.5312 GB, free: 7.738 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/0.5578, allocations: 0.6161 MB / 0.5318 GB, free: 7.109 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001644/0.558, allocations: 43.97 kB / 0.5319 GB, free: 7.066 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2249/0.7829, allocations: 11.45 MB / 0.543 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.783, allocations: 3.969 kB / 0.543 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006599/0.7896, allocations: 4.166 MB / 0.5471 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/0.7908, allocations: 0.5515 MB / 0.5477 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003274/0.7911, allocations: 43.75 kB / 0.5477 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.7923, allocations: 85.36 kB / 0.5478 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003753/0.7927, allocations: 140.5 kB / 0.5479 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.7928, allocations: 50.69 kB / 0.548 GB, free: 117.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002315/0.7951, allocations: 1.866 MB / 0.5498 GB, free: 116.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7951, allocations: 1.344 kB / 0.5498 GB, free: 116.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002245/0.7974, allocations: 0.6952 MB / 0.5505 GB, free: 116.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.phi,PI.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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007218/0.8046, allocations: 5.096 MB / 0.5554 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004213/0.8088, allocations: 2.832 MB / 0.5582 GB, free: 113.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.8089, allocations: 0 / 0.5582 GB, free: 113.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002406/0.8113, allocations: 1.939 MB / 0.5601 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.8137, allocations: 0.601 MB / 0.5607 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03238/0.8461, allocations: 26.24 MB / 0.5863 GB, free: 85.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001887/0.848, allocations: 2.649 MB / 0.5889 GB, free: 82.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001378/0.8494, allocations: 0.5046 MB / 0.5894 GB, free: 82.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/0.8508, allocations: 1.44 MB / 0.5908 GB, free: 81.02 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.8508, allocations: 0 / 0.5908 GB, free: 81.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/0.9563, allocations: 65.02 MB / 0.6543 GB, free: 16.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/16.77, allocations: 10.09 kB / 0.6543 GB, free: 16.54 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches