Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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: 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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.001009, allocations: 99.58 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009662/0.0009664, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.7 MB / 246.4 MB, free: 9.832 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002825/0.0002825, allocations: 8 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.13, allocations: 51.53 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01003/0.14, allocations: 8.592 MB / 367.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007677/0.1478, allocations: 3.535 MB / 370.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002038/0.1498, allocations: 43.81 kB / 370.8 MB, free: 1.215 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002239/0.1521, allocations: 0.5359 MB / 371.3 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2754/0.4275, allocations: 0.7286 MB / 372.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001617/0.4292, allocations: 326.5 kB / 372.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004397/0.4336, allocations: 2.725 MB / 375.1 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002041/0.4356, allocations: 1.323 MB / 376.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0019/0.4376, allocations: 0.9284 MB / 377.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00223/0.4398, allocations: 1.322 MB / 378.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003713/0.4402, allocations: 136.3 kB / 378.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.4412, allocations: 338.5 kB / 379.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009014/0.4422, allocations: 0.7847 MB / 379.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008515/0.443, allocations: 0.5149 MB / 380.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003882/0.4469, allocations: 3.406 MB / 383.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4469, allocations: 0 / 383.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4469, allocations: 0 / 383.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.4471, allocations: 0 / 383.9 MB, free: 8.629 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.005769/0.4528, allocations: 2.745 MB / 386.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4529, allocations: 9.062 kB / 386.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001406/0.4543, allocations: 367.5 kB / 387 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002814/0.4571, allocations: 1.615 MB / 388.6 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.4573, allocations: 152.7 kB / 388.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003476/0.4576, allocations: 201.2 kB / 388.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005121/0.4627, allocations: 2.693 MB / 391.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.428e-05/0.4628, allocations: 10.64 kB / 391.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/0.463, allocations: 85.38 kB / 391.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.4632, allocations: 100.5 kB / 391.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004317/0.4675, allocations: 2.297 MB / 394.1 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01309/0.4806, allocations: 8.268 MB / 402.4 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003096/0.4837, allocations: 1.637 MB / 404 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/0.4857, allocations: 1.105 MB / 405.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002684/0.486, allocations: 125.9 kB / 405.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.486, allocations: 47.56 kB / 405.3 MB, free: 11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.266e-06/0.486, allocations: 0 / 405.3 MB, free: 11 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01381/0.4999, allocations: 6.506 MB / 411.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.5, allocations: 64.72 kB / 411.9 MB, free: 4.301 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003502/0.5035, allocations: 2.169 MB / 414 MB, free: 2.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001715/0.5037, allocations: 49.7 kB / 414.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009139/0.5046, allocations: 1.11 MB / 415.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004396/0.5051, allocations: 464 kB / 415.7 MB, free: 472 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.42e-05/0.5051, allocations: 28 kB / 415.7 MB, free: 444 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.5053, allocations: 361.9 kB / 416 MB, free: 76 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001341/0.5066, allocations: 0.7652 MB / 416.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.5081, allocations: 1.023 MB / 417.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.5097, allocations: 0.9004 MB / 418.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.5097, allocations: 0 / 418.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005351/0.515, allocations: 2.77 MB / 421.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.5151, allocations: 8 kB / 421.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.5151, allocations: 12.25 kB / 421.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/0.5174, allocations: 0.785 MB / 422.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.5187, allocations: 279.5 kB / 422.6 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.5305, allocations: 8.736 MB / 431.3 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.5324, allocations: 101.1 kB / 431.4 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001719/0.5326, allocations: 55.98 kB / 431.5 MB, free: 284 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001732/0.5343, allocations: 0.7395 MB / 432.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005007/0.5348, allocations: 201.5 kB / 432.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004704/0.5396, allocations: 2.509 MB / 434.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.754e-05/0.5396, allocations: 20 kB / 434.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.779e-06/0.5396, allocations: 7.938 kB / 434.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.5397, allocations: 11.92 kB / 434.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009313/0.549, allocations: 4.965 MB / 439.9 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.549, allocations: 4 kB / 439.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.55, allocations: 223.9 kB / 440.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/0.5518, allocations: 0.6554 MB / 440.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.552, allocations: 40.86 kB / 440.8 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00897/0.5609, allocations: 7.919 MB / 448.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.561, allocations: 0 / 448.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006248/0.5672, allocations: 3.564 MB / 452.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/0.5685, allocations: 450.4 kB / 452.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002786/0.5688, allocations: 40 kB / 452.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009255/0.5698, allocations: 91.91 kB / 452.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000277/0.57, allocations: 96.84 kB / 453 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.773e-05/0.5702, allocations: 43.98 kB / 453 MB, free: 10.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002475/0.5726, allocations: 1.524 MB / 454.5 MB, free: 8.621 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.5727, allocations: 0 / 454.5 MB, free: 8.621 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002297/0.575, allocations: 0.5235 MB / 455.1 MB, free: 8.098 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001081/0.576, allocations: 424.5 kB / 455.5 MB, free: 7.809 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004417/0.5805, allocations: 2.397 MB / 457.9 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.5805, allocations: 2.406 kB / 457.9 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002633/0.5831, allocations: 1.601 MB / 459.5 MB, free: 3.727 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002383/0.5855, allocations: 441.7 kB / 459.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009775/0.5953, allocations: 6.034 MB / 465.9 MB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001747/0.5971, allocations: 1.959 MB / 467.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00147/0.5986, allocations: 391.8 kB / 468.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004258/0.599, allocations: 131.4 kB / 468.4 MB, free: 10.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.273e-06/0.599, allocations: 0 / 468.4 MB, free: 10.71 MB / 382.1 MB Notification: Performance of Templates: time 0.05501/0.6541, allocations: 27.75 MB / 496.2 MB, free: 15.21 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches