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.0008773/0.0008774, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001013/0.001013, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.369/1.369, allocations: 223.2 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002701, allocations: 10.25 kB / 301.4 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1105, allocations: 50.42 MB / 351.8 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01081/0.1213, allocations: 9.069 MB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007471/0.1289, allocations: 3.491 MB / 364.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001617/0.1305, allocations: 43.81 kB / 364.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.1326, allocations: 0.5827 MB / 365 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002813/0.1355, allocations: 0.7422 MB / 365.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.1369, allocations: 415.4 kB / 366.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003673/0.1406, allocations: 3.009 MB / 369.2 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002263/0.1428, allocations: 1.533 MB / 370.7 MB, free: 476 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1823/0.3251, allocations: 0.9143 MB / 371.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002819/0.328, allocations: 1.359 MB / 373 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009203/0.3289, allocations: 136 kB / 373.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001627/0.3306, allocations: 417.8 kB / 373.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001348/0.3319, allocations: 0.7849 MB / 374.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002004/0.334, allocations: 1.292 MB / 375.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004162/0.3381, allocations: 4.023 MB / 379.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3381, allocations: 0 / 379.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3382, allocations: 0 / 379.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.916e-05/0.3382, allocations: 0 / 379.6 MB, free: 10.11 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.004999/0.3432, allocations: 2.708 MB / 382.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.3433, allocations: 9.188 kB / 382.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007937/0.3441, allocations: 324.4 kB / 382.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002435/0.3465, allocations: 1.648 MB / 384.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.3467, allocations: 154.7 kB / 384.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003412/0.347, allocations: 212.8 kB / 384.7 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004662/0.3517, allocations: 2.708 MB / 387.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.574e-05/0.3518, allocations: 2.031 kB / 387.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/0.352, allocations: 86.44 kB / 387.5 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.3521, allocations: 94.19 kB / 387.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00403/0.3561, allocations: 2.311 MB / 389.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.3677, allocations: 8.275 MB / 398.1 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002676/0.3704, allocations: 1.639 MB / 399.8 MB, free: 15.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.3724, allocations: 1.106 MB / 400.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002351/0.3726, allocations: 125.5 kB / 401 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.3727, allocations: 44.59 kB / 401.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.326e-06/0.3727, allocations: 0 / 401.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.0139/0.3866, allocations: 6.513 MB / 407.6 MB, free: 8.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.3867, allocations: 64.72 kB / 407.6 MB, free: 8.879 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003353/0.3901, allocations: 2.16 MB / 409.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001924/0.3903, allocations: 45.7 kB / 409.8 MB, free: 6.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008822/0.3912, allocations: 1.103 MB / 410.9 MB, free: 5.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004548/0.3916, allocations: 466.9 kB / 411.4 MB, free: 5.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001937/0.3918, allocations: 109.7 kB / 411.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.392, allocations: 365.9 kB / 411.9 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.3934, allocations: 0.7691 MB / 412.6 MB, free: 3.816 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.3949, allocations: 1.024 MB / 413.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002954/0.3979, allocations: 1.885 MB / 415.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3979, allocations: 0 / 415.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005424/0.4034, allocations: 2.798 MB / 418.3 MB, free: 14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.4034, allocations: 8 kB / 418.3 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.4034, allocations: 4 kB / 418.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00226/0.4057, allocations: 0.7891 MB / 419.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.4069, allocations: 275.9 kB / 419.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/0.4196, allocations: 8.765 MB / 428.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/0.422, allocations: 99.95 kB / 428.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003656/0.4224, allocations: 51.98 kB / 428.3 MB, free: 3.801 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.002409/0.4248, allocations: 0.7389 MB / 429.1 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005943/0.4254, allocations: 201.7 kB / 429.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005343/0.4308, allocations: 2.525 MB / 431.8 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001131/0.4309, allocations: 16 kB / 431.8 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.805e-05/0.4309, allocations: 4 kB / 431.8 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.4309, allocations: 7.984 kB / 431.8 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.4413, allocations: 4.969 MB / 436.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.325e-06/0.4413, allocations: 0 / 436.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.4424, allocations: 230.5 kB / 437 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001945/0.4444, allocations: 0.6394 MB / 437.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001526/0.4445, allocations: 35.98 kB / 437.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009406/0.4539, allocations: 7.941 MB / 445.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.454, allocations: 2.625 kB / 445.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006818/0.4608, allocations: 3.571 MB / 449.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.4621, allocations: 442.4 kB / 449.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005349/0.4627, allocations: 35.92 kB / 449.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.464, allocations: 94.53 kB / 449.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003194/0.4644, allocations: 100.8 kB / 449.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.4645, allocations: 43.97 kB / 449.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002898/0.4674, allocations: 1.512 MB / 451.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4674, allocations: 4 kB / 451.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002736/0.4702, allocations: 0.5273 MB / 451.9 MB, free: 11.72 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.001483/0.4717, allocations: 464.2 kB / 452.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005044/0.4767, allocations: 2.403 MB / 454.8 MB, free: 9.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.4768, allocations: 320 / 454.8 MB, free: 9.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00299/0.4798, allocations: 1.62 MB / 456.4 MB, free: 7.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003956/0.4837, allocations: 448.6 kB / 456.9 MB, free: 6.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.4971, allocations: 6.264 MB / 463.1 MB, free: 0.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002751/0.4999, allocations: 1.951 MB / 465.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00191/0.5018, allocations: 395.7 kB / 465.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006614/0.5025, allocations: 131.4 kB / 465.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.5025, allocations: 0 / 465.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of Templates: time 0.05865/0.5612, allocations: 28.38 MB / 494 MB, free: 2.027 MB / 398.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