Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 106.9 kB / 16.62 MB, free: 6.809 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.001191/0.001191, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.424/1.424, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 51.03 kB / 300.1 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1108, allocations: 49.45 MB / 349.6 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01121/0.1221, allocations: 9.587 MB / 359.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006638/0.1288, allocations: 3.522 MB / 362.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0016/0.1304, allocations: 43.81 kB / 362.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.1325, allocations: 0.5945 MB / 363.3 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002831/0.1353, allocations: 0.7422 MB / 364.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.1365, allocations: 409.5 kB / 364.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003574/0.1401, allocations: 2.631 MB / 367.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002246/0.1423, allocations: 1.889 MB / 369 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002171/0.1445, allocations: 1.187 MB / 370.2 MB, free: 0 / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003129/0.3399, allocations: 1.587 MB / 371.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000844/0.3408, allocations: 306.2 kB / 372.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001525/0.3423, allocations: 0.5649 MB / 372.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.3434, allocations: 0.9826 MB / 373.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.345, allocations: 1.481 MB / 375.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005428/0.3504, allocations: 4.242 MB / 379.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.3505, allocations: 1.094 kB / 379.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3505, allocations: 3.562 kB / 379.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001613/0.3506, allocations: 0.7812 kB / 379.3 MB, free: 10.63 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.00885/0.3595, allocations: 3.154 MB / 382.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.81e-05/0.3596, allocations: 9.281 kB / 382.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/0.3611, allocations: 328.7 kB / 382.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003625/0.3647, allocations: 1.662 MB / 384.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.3649, allocations: 148.9 kB / 384.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003779/0.3652, allocations: 208 kB / 384.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004976/0.3702, allocations: 2.693 MB / 387.5 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.36e-05/0.3703, allocations: 10.78 kB / 387.5 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002048/0.3705, allocations: 81.38 kB / 387.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001473/0.3707, allocations: 97.27 kB / 387.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003726/0.3744, allocations: 2.28 MB / 390 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01345/0.3879, allocations: 8.241 MB / 398.2 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/0.3907, allocations: 1.62 MB / 399.8 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001844/0.3926, allocations: 1.088 MB / 400.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000299/0.3929, allocations: 127.5 kB / 401.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.497e-05/0.393, allocations: 45.53 kB / 401.1 MB, free: 14.24 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.757e-06/0.393, allocations: 3.531 kB / 401.1 MB, free: 14.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01468/0.4077, allocations: 6.453 MB / 407.6 MB, free: 8.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/0.4078, allocations: 68.72 kB / 407.6 MB, free: 8.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003503/0.4113, allocations: 2.152 MB / 409.8 MB, free: 5.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001363/0.4115, allocations: 49.7 kB / 409.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008852/0.4124, allocations: 1.104 MB / 410.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004207/0.4128, allocations: 459.7 kB / 411.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004415/0.4132, allocations: 239.5 kB / 411.6 MB, free: 3.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.4134, allocations: 361.9 kB / 412 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.4148, allocations: 0.7535 MB / 412.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.4163, allocations: 1.008 MB / 413.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.4191, allocations: 1.867 MB / 415.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.4191, allocations: 4 kB / 415.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005309/0.4244, allocations: 2.763 MB / 418.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.4245, allocations: 10.66 kB / 418.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.4245, allocations: 12.25 kB / 418.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002047/0.4265, allocations: 0.7912 MB / 419.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.4277, allocations: 269 kB / 419.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/0.4398, allocations: 9.595 MB / 429 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.4417, allocations: 87.89 kB / 429.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/0.4418, allocations: 55.98 kB / 429.2 MB, free: 2.082 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * 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%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001651/0.4435, allocations: 0.7395 MB / 429.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005017/0.444, allocations: 201.5 kB / 430.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004615/0.4486, allocations: 2.49 MB / 432.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.991e-05/0.4486, allocations: 12 kB / 432.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.4487, allocations: 12.12 kB / 432.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.4487, allocations: 3.984 kB / 432.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00898/0.4577, allocations: 4.95 MB / 437.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.4577, allocations: 4 kB / 437.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.4588, allocations: 220.7 kB / 437.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001771/0.4605, allocations: 0.6553 MB / 438.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/0.4607, allocations: 35.97 kB / 438.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009227/0.4699, allocations: 8.721 MB / 447.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4699, allocations: 0 / 447.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006317/0.4763, allocations: 3.538 MB / 450.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.4774, allocations: 442.4 kB / 451.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002678/0.4777, allocations: 35.98 kB / 451.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.4787, allocations: 79.91 kB / 451.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000301/0.479, allocations: 100.8 kB / 451.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.4791, allocations: 39.98 kB / 451.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002247/0.4814, allocations: 1.519 MB / 453 MB, free: 9.836 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4814, allocations: 0 / 453 MB, free: 9.836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002236/0.4837, allocations: 0.5234 MB / 453.5 MB, free: 9.312 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001255/0.4849, allocations: 460.5 kB / 453.9 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00579/0.4907, allocations: 2.866 MB / 456.8 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4907, allocations: 1.25 kB / 456.8 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002627/0.4934, allocations: 1.608 MB / 458.4 MB, free: 4.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/0.496, allocations: 455.9 kB / 458.8 MB, free: 4.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009581/0.5056, allocations: 6.127 MB / 465 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001768/0.5074, allocations: 1.954 MB / 466.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001544/0.509, allocations: 395.6 kB / 467.3 MB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/0.5094, allocations: 135.4 kB / 467.4 MB, free: 11.4 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5094, allocations: 0 / 467.4 MB, free: 11.4 MB / 382.1 MB Notification: Performance of Templates: time 0.057/0.5664, allocations: 30 MB / 497.4 MB, free: 13.72 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches