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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001682/0.001682, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 102.2 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009282/0.0009286, allocations: 39.94 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2345, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.008494/0.2431, allocations: 9.579 MB / 409.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005555/0.2487, allocations: 3.539 MB / 412.6 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001472/0.2502, allocations: 47.75 kB / 412.6 MB, free: 20.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001723/0.252, allocations: 0.5789 MB / 413.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002779/0.2548, allocations: 0.75 MB / 414 MB, free: 18.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00141/0.2562, allocations: 410.7 kB / 414.4 MB, free: 18.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003789/0.26, allocations: 3.04 MB / 417.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.2618, allocations: 1.548 MB / 419 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001586/0.2634, allocations: 1.047 MB / 420 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.2652, allocations: 1.502 MB / 421.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004271/0.2656, allocations: 192 kB / 421.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.2667, allocations: 475.5 kB / 422.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000686/0.2674, allocations: 0.8683 MB / 423 MB, free: 9.699 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.2686, allocations: 1.36 MB / 424.4 MB, free: 8.332 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00274/0.2713, allocations: 4.151 MB / 428.5 MB, free: 4.168 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2713, allocations: 4 kB / 428.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.2714, allocations: 0 / 428.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.743e-05/0.2714, allocations: 0 / 428.5 MB, free: 4.164 MB / 298.7 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.004998/0.2764, allocations: 3.154 MB / 431.7 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2765, allocations: 8.031 kB / 431.7 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/0.2772, allocations: 325.2 kB / 432 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002603/0.2798, allocations: 1.658 MB / 433.7 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.28, allocations: 152 kB / 433.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002888/0.2803, allocations: 211.8 kB / 434 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00421/0.2845, allocations: 2.694 MB / 436.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.956e-05/0.2845, allocations: 11.84 kB / 436.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001856/0.2847, allocations: 80 kB / 436.8 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.2848, allocations: 95.94 kB / 436.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003851/0.2887, allocations: 2.272 MB / 439.2 MB, free: 9.312 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/0.3018, allocations: 8.247 MB / 447.4 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002843/0.3046, allocations: 1.625 MB / 449.1 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001914/0.3066, allocations: 1.077 MB / 450.1 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002615/0.3069, allocations: 130 kB / 450.3 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.3069, allocations: 51.5 kB / 450.3 MB, free: 13.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 4.298e-06/0.3069, allocations: 0 / 450.3 MB, free: 13.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01313/0.3201, allocations: 6.439 MB / 456.8 MB, free: 7.309 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.3201, allocations: 64.72 kB / 456.8 MB, free: 7.234 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003096/0.3232, allocations: 2.156 MB / 459 MB, free: 5.031 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002385/0.3235, allocations: 53.64 kB / 459 MB, free: 4.973 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009487/0.3245, allocations: 1.108 MB / 460.1 MB, free: 3.852 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006504/0.3251, allocations: 457.3 kB / 460.6 MB, free: 3.398 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004934/0.3256, allocations: 243.4 kB / 460.8 MB, free: 3.152 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002264/0.3259, allocations: 361.9 kB / 461.2 MB, free: 2.793 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.3272, allocations: 0.7574 MB / 461.9 MB, free: 2.035 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.3287, allocations: 1.009 MB / 462.9 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/0.3316, allocations: 1.869 MB / 464.8 MB, free: 14.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3316, allocations: 0 / 464.8 MB, free: 14.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005275/0.3369, allocations: 2.757 MB / 467.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.337, allocations: 8 kB / 467.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.617e-05/0.337, allocations: 8 kB / 467.6 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/0.3394, allocations: 0.785 MB / 468.4 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.3408, allocations: 267.6 kB / 468.6 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/0.3521, allocations: 8.756 MB / 477.4 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.3537, allocations: 103.8 kB / 477.5 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.3538, allocations: 51.92 kB / 477.5 MB, free: 1.961 MB / 346.7 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.001221/0.355, allocations: 0.7427 MB / 478.3 MB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003879/0.3554, allocations: 197.6 kB / 478.5 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004396/0.3598, allocations: 2.488 MB / 481 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-05/0.3599, allocations: 20 kB / 481 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3599, allocations: 4 kB / 481 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.3599, allocations: 11.97 kB / 481 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008212/0.3681, allocations: 4.948 MB / 485.9 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.3682, allocations: 0 / 485.9 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000987/0.3692, allocations: 223.7 kB / 486.2 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00167/0.3708, allocations: 0.6484 MB / 486.8 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.981e-05/0.3709, allocations: 39.97 kB / 486.8 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008342/0.3793, allocations: 7.911 MB / 494.8 MB, free: 196 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.3793, allocations: 8.016 kB / 494.8 MB, free: 188 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2417/0.621, allocations: 26.14 MB / 0.5087 GB, free: 89.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/0.6221, allocations: 440.2 kB / 0.5091 GB, free: 89.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002405/0.6224, allocations: 28.73 kB / 0.5091 GB, free: 89.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009858/0.6234, allocations: 86.56 kB / 0.5092 GB, free: 89.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003058/0.6237, allocations: 101.6 kB / 0.5093 GB, free: 89.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.6238, allocations: 36.45 kB / 0.5094 GB, free: 89.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002268/0.6261, allocations: 1.525 MB / 0.5108 GB, free: 88.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6261, allocations: 0 / 0.5108 GB, free: 88.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002405/0.6285, allocations: 0.7392 MB / 0.5116 GB, free: 88.4 MB / 378.7 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.001037/0.6296, allocations: 461.5 kB / 0.512 GB, free: 88.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003599/0.6332, allocations: 2.386 MB / 0.5143 GB, free: 87.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.6332, allocations: 0 / 0.5143 GB, free: 87.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002065/0.6353, allocations: 1.593 MB / 0.5159 GB, free: 86.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/0.6373, allocations: 429.8 kB / 0.5163 GB, free: 86.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009261/0.6465, allocations: 7.595 MB / 0.5237 GB, free: 79.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001745/0.6483, allocations: 2.002 MB / 0.5257 GB, free: 78.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001446/0.6498, allocations: 401.4 kB / 0.5261 GB, free: 77.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004042/0.6502, allocations: 138.3 kB / 0.5262 GB, free: 77.86 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.6502, allocations: 0 / 0.5262 GB, free: 77.86 MB / 378.7 MB Notification: Performance of Templates: time 0.04924/0.6995, allocations: 35.82 MB / 0.5612 GB, free: 42.37 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../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