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.001364/0.001364, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001718/0.001718, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.3 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.38 kB / 306.9 MB, free: 1.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1022, allocations: 50.53 MB / 357.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01192/0.1141, allocations: 9.648 MB / 367.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007436/0.1216, allocations: 3.748 MB / 370.8 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.1234, allocations: 43.81 kB / 370.9 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002249/0.1257, allocations: 0.5905 MB / 371.5 MB, free: 440 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1795/0.3053, allocations: 0.7788 MB / 372.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.3068, allocations: 413.7 kB / 372.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004839/0.3117, allocations: 3.034 MB / 375.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002188/0.3139, allocations: 1.549 MB / 377.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002249/0.3162, allocations: 1.052 MB / 378.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002611/0.3188, allocations: 1.51 MB / 379.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005788/0.3194, allocations: 193.8 kB / 380 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.3208, allocations: 459.5 kB / 380.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009605/0.3218, allocations: 0.8674 MB / 381.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002053/0.3238, allocations: 1.361 MB / 382.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004095/0.328, allocations: 3.506 MB / 386.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.328, allocations: 1.188 kB / 386.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.328, allocations: 0 / 386.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001128/0.3281, allocations: 0 / 386.2 MB, free: 7.438 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.00732/0.3354, allocations: 3.181 MB / 389.4 MB, free: 5.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3355, allocations: 8.594 kB / 389.4 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001261/0.3368, allocations: 361.9 kB / 389.7 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002837/0.3396, allocations: 1.675 MB / 391.4 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.3397, allocations: 156 kB / 391.5 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003585/0.3401, allocations: 204.7 kB / 391.7 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004483/0.3446, allocations: 2.701 MB / 394.4 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.272e-05/0.3447, allocations: 6.594 kB / 394.4 MB, free: 2.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001875/0.3449, allocations: 83.81 kB / 394.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/0.345, allocations: 97.42 kB / 394.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003807/0.3488, allocations: 2.277 MB / 396.9 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/0.3624, allocations: 8.234 MB / 405.1 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002958/0.3654, allocations: 1.631 MB / 406.8 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/0.3673, allocations: 1.077 MB / 407.8 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002592/0.3676, allocations: 137.5 kB / 408 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.3677, allocations: 47.56 kB / 408 MB, free: 6.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.146e-06/0.3677, allocations: 0 / 408 MB, free: 6.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01368/0.3814, allocations: 6.455 MB / 414.5 MB, free: 280 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.3814, allocations: 68.72 kB / 414.5 MB, free: 196 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003703/0.3851, allocations: 2.173 MB / 416.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003681/0.3855, allocations: 49.7 kB / 416.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009858/0.3865, allocations: 1.118 MB / 417.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005978/0.3871, allocations: 452 kB / 418.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005463/0.3877, allocations: 247.4 kB / 418.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.3879, allocations: 361.9 kB / 418.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.3893, allocations: 0.7573 MB / 419.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.3908, allocations: 1.011 MB / 420.7 MB, free: 9.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002948/0.3938, allocations: 1.86 MB / 422.5 MB, free: 7.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/0.3938, allocations: 4 kB / 422.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005503/0.3993, allocations: 2.765 MB / 425.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.3994, allocations: 8 kB / 425.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.812e-05/0.3994, allocations: 8 kB / 425.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002149/0.4015, allocations: 0.7909 MB / 426.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.4028, allocations: 271.5 kB / 426.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01132/0.4141, allocations: 8.746 MB / 435.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.4158, allocations: 99.89 kB / 435.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002719/0.4161, allocations: 47.98 kB / 435.3 MB, free: 10.93 MB / 350.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.001645/0.4177, allocations: 0.7433 MB / 436 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006528/0.4184, allocations: 205.5 kB / 436.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00513/0.4235, allocations: 2.493 MB / 438.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.998e-05/0.4236, allocations: 19.66 kB / 438.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.564e-05/0.4236, allocations: 8 kB / 438.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.4236, allocations: 7.969 kB / 438.8 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.4341, allocations: 4.959 MB / 443.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.4342, allocations: 4 kB / 443.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.4352, allocations: 211.7 kB / 443.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/0.4372, allocations: 0.6554 MB / 444.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/0.4374, allocations: 39.97 kB / 444.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009484/0.4469, allocations: 7.919 MB / 452.5 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.4469, allocations: 4.031 kB / 452.5 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006817/0.4537, allocations: 3.542 MB / 456.1 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/0.4549, allocations: 442.4 kB / 456.5 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006179/0.4556, allocations: 35.92 kB / 456.5 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.457, allocations: 83.91 kB / 456.6 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003289/0.4573, allocations: 100.8 kB / 456.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.4575, allocations: 39.98 kB / 456.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003077/0.4605, allocations: 1.532 MB / 458.3 MB, free: 3.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4606, allocations: 0 / 458.3 MB, free: 3.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002729/0.4633, allocations: 0.5234 MB / 458.8 MB, free: 2.805 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.001316/0.4646, allocations: 472.2 kB / 459.3 MB, free: 2.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004646/0.4693, allocations: 2.381 MB / 461.7 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.4693, allocations: 384 / 461.7 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002715/0.472, allocations: 1.589 MB / 463.3 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/0.475, allocations: 431 kB / 463.7 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.4855, allocations: 6.22 MB / 469.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002077/0.4876, allocations: 1.94 MB / 471.8 MB, free: 5.758 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007394/0.4884, allocations: 143.4 kB / 472 MB, free: 5.617 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4884, allocations: 3.938 kB / 472 MB, free: 5.613 MB / 382.1 MB Notification: Performance of Templates: time 0.07626/0.5647, allocations: 64.13 MB / 0.5235 GB, free: 5.52 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/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