Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 93.3 kB / 17.31 MB, free: 6.109 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.001336/0.001336, allocations: 178.4 kB / 18.21 MB, free: 5.41 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.285/1.285, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002148/0.0002148, allocations: 11.94 kB / 302.1 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07263/0.07286, allocations: 50.42 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009196/0.08207, allocations: 9.676 MB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004993/0.08708, allocations: 3.147 MB / 365.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.08814, allocations: 47.81 kB / 365.4 MB, free: 6.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.08965, allocations: 0.5982 MB / 366 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00209/0.09175, allocations: 0.8044 MB / 366.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007902/0.09255, allocations: 363.6 kB / 367.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003491/0.09606, allocations: 3.9 MB / 371 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1456/0.2417, allocations: 2.179 MB / 373.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001616/0.2433, allocations: 1.127 MB / 374.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001635/0.245, allocations: 1.572 MB / 375.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000278/0.2453, allocations: 163.6 kB / 376.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005816/0.2459, allocations: 261 kB / 376.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007292/0.2466, allocations: 0.8322 MB / 377.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001268/0.2479, allocations: 1.487 MB / 378.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003212/0.2511, allocations: 4.168 MB / 382.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2511, allocations: 0.9688 kB / 382.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2511, allocations: 2.859 kB / 382.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.168e-05/0.2512, allocations: 0 / 382.8 MB, free: 9.051 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.005059/0.2562, allocations: 2.997 MB / 385.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.2563, allocations: 12.25 kB / 385.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007567/0.257, allocations: 349.7 kB / 386.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002469/0.2595, allocations: 1.858 MB / 388 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.2597, allocations: 201.3 kB / 388.2 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003896/0.2601, allocations: 257.2 kB / 388.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005155/0.2652, allocations: 3.555 MB / 392 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.166e-05/0.2653, allocations: 10.97 kB / 392 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002551/0.2656, allocations: 105.9 kB / 392.1 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.502e-05/0.2657, allocations: 113.5 kB / 392.3 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004518/0.2702, allocations: 3.121 MB / 395.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01354/0.2837, allocations: 10.93 MB / 406.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003336/0.2871, allocations: 3.093 MB / 409.4 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002168/0.2893, allocations: 1.397 MB / 410.8 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002348/0.2895, allocations: 125 kB / 410.9 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001732/0.2913, allocations: 1.16 MB / 412.1 MB, free: 4.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.226e-06/0.2913, allocations: 8.125 kB / 412.1 MB, free: 4.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.01976/0.3111, allocations: 8.997 MB / 421.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.433e-05/0.3111, allocations: 182.8 kB / 421.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002439/0.3136, allocations: 1.828 MB / 423.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.3137, allocations: 57.7 kB / 423.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009078/0.3146, allocations: 1.194 MB / 424.3 MB, free: 8.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004193/0.3151, allocations: 0.5559 MB / 424.9 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/0.3153, allocations: 173.6 kB / 425.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 7.418e-05/0.3154, allocations: 301.1 kB / 425.4 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/0.317, allocations: 1.011 MB / 426.4 MB, free: 6.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.3189, allocations: 1.447 MB / 427.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003424/0.3223, allocations: 2.471 MB / 430.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.3223, allocations: 8 kB / 430.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005542/0.3279, allocations: 3.354 MB / 433.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3279, allocations: 8 kB / 433.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.3279, allocations: 12 kB / 433.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002038/0.33, allocations: 0.8845 MB / 434.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3312, allocations: 337.2 kB / 434.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.3419, allocations: 9.566 MB / 444.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.3435, allocations: 147.8 kB / 444.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.3436, allocations: 75.98 kB / 444.7 MB, free: 3.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001684/0.3453, allocations: 0.923 MB / 445.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003274/0.3457, allocations: 205.5 kB / 445.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00539/0.3511, allocations: 3.133 MB / 448.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.3511, allocations: 16 kB / 448.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.3511, allocations: 8 kB / 448.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.3511, allocations: 11.97 kB / 449 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.3613, allocations: 6.307 MB / 455.3 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.3614, allocations: 0 / 455.3 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000943/0.3623, allocations: 219.3 kB / 455.5 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/0.3646, allocations: 0.9286 MB / 456.4 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.3648, allocations: 43.98 kB / 456.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/0.3767, allocations: 11.01 MB / 467.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3767, allocations: 0 / 467.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007189/0.3839, allocations: 4.537 MB / 472 MB, free: 7.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.385, allocations: 0.4984 MB / 472.5 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004728/0.3855, allocations: 43.92 kB / 472.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.3868, allocations: 115.9 kB / 472.6 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004224/0.3872, allocations: 192 kB / 472.8 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.3873, allocations: 47.98 kB / 472.9 MB, free: 6.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00207/0.3894, allocations: 1.255 MB / 474.1 MB, free: 5.414 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3894, allocations: 0 / 474.1 MB, free: 5.414 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002105/0.3915, allocations: 0.6368 MB / 474.8 MB, free: 4.777 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004112/0.3919, allocations: 218.6 kB / 475 MB, free: 4.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005029/0.397, allocations: 3.27 MB / 478.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.397, allocations: 0 / 478.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003269/0.4003, allocations: 2.218 MB / 480.5 MB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003022/0.4033, allocations: 0.5357 MB / 481 MB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009712/0.413, allocations: 7.015 MB / 488 MB, free: 7.406 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001988/0.415, allocations: 2.157 MB / 490.2 MB, free: 5.215 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004926/0.4155, allocations: 139.4 kB / 490.3 MB, free: 5.078 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4155, allocations: 0 / 490.3 MB, free: 5.078 MB / 398.1 MB Notification: Performance of Templates: time 0.2365/0.652, allocations: 102.3 MB / 0.5787 GB, free: 119.8 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches