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.001906/0.001906, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.002165/0.002165, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.261/2.261, allocations: 222.9 MB / 241.8 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 47.08 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2032, allocations: 49.45 MB / 350.1 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.02012/0.2233, allocations: 10.21 MB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.2341, allocations: 3.178 MB / 363.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003309/0.2374, allocations: 55.69 kB / 363.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004208/0.2418, allocations: 0.606 MB / 364.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006099/0.248, allocations: 0.8083 MB / 364.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002744/0.2508, allocations: 359.7 kB / 365.3 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009096/0.2599, allocations: 3.888 MB / 369.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.343/0.6029, allocations: 2.205 MB / 371.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004996/0.608, allocations: 1.281 MB / 372.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008132/0.6162, allocations: 1.779 MB / 374.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00333/0.6197, allocations: 233.6 kB / 374.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005071/0.6248, allocations: 329.3 kB / 375 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004894/0.6298, allocations: 0.9318 MB / 375.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008237/0.6381, allocations: 1.606 MB / 377.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.6493, allocations: 4.268 MB / 381.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.249e-05/0.6493, allocations: 0 / 381.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.6494, allocations: 0 / 381.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003149/0.6497, allocations: 0 / 381.8 MB, free: 9.887 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.0244/0.6741, allocations: 3.522 MB / 385.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.321e-05/0.6742, allocations: 10.03 kB / 385.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003914/0.6781, allocations: 350.6 kB / 385.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008176/0.6864, allocations: 1.856 MB / 387.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006037/0.687, allocations: 206.2 kB / 387.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002255/0.6893, allocations: 255 kB / 388 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01951/0.7089, allocations: 3.541 MB / 391.5 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003021/0.7093, allocations: 9.375 kB / 391.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001832/0.7111, allocations: 109.3 kB / 391.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002243/0.7114, allocations: 111.4 kB / 391.7 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.7249, allocations: 3.092 MB / 394.8 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03813/0.7631, allocations: 10.85 MB / 405.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007264/0.7705, allocations: 3.07 MB / 408.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004441/0.775, allocations: 1.389 MB / 410.1 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005058/0.7755, allocations: 130.3 kB / 410.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003506/0.7791, allocations: 1.155 MB / 411.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 6.763e-06/0.7791, allocations: 0 / 411.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.03728/0.8164, allocations: 8.864 MB / 420.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001987/0.8167, allocations: 176.2 kB / 420.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007046/0.8237, allocations: 1.836 MB / 422.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006392/0.8244, allocations: 53.7 kB / 422.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002533/0.827, allocations: 1.193 MB / 423.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001424/0.8285, allocations: 0.5566 MB / 424.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002077/0.8306, allocations: 359.2 kB / 424.4 MB, free: 7.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.8308, allocations: 305.1 kB / 424.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00341/0.8342, allocations: 0.9955 MB / 425.7 MB, free: 6.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00414/0.8384, allocations: 1.438 MB / 427.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007629/0.846, allocations: 2.448 MB / 429.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.729e-05/0.8461, allocations: 4 kB / 429.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.01164/0.8578, allocations: 3.326 MB / 433 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.447e-05/0.8579, allocations: 15.47 kB / 433 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-05/0.858, allocations: 8 kB / 433 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003639/0.8616, allocations: 0.8781 MB / 433.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002667/0.8644, allocations: 341.8 kB / 434.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02028/0.8847, allocations: 9.551 MB / 443.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004403/0.8892, allocations: 131.3 kB / 443.9 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008911/0.8901, allocations: 71.98 kB / 443.9 MB, free: 3.473 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.004263/0.8944, allocations: 0.9267 MB / 444.9 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001303/0.8957, allocations: 205.5 kB / 445.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/0.907, allocations: 3.098 MB / 448.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.823e-05/0.9071, allocations: 20 kB / 448.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.026e-05/0.9071, allocations: 8 kB / 448.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.134e-05/0.9072, allocations: 11.95 kB / 448.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02352/0.9307, allocations: 6.256 MB / 454.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.938e-05/0.9308, allocations: 0.6562 kB / 454.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/0.9324, allocations: 221.9 kB / 454.7 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003817/0.9362, allocations: 0.9255 MB / 455.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003677/0.9366, allocations: 43.98 kB / 455.6 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0221/0.9588, allocations: 10.99 MB / 466.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/0.9588, allocations: 10.66 kB / 466.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01411/0.973, allocations: 4.506 MB / 471.1 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002618/0.9756, allocations: 0.4907 MB / 471.6 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001292/0.977, allocations: 39.92 kB / 471.7 MB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002679/0.9797, allocations: 99.89 kB / 471.8 MB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009701/0.9807, allocations: 199.7 kB / 472 MB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002974/0.981, allocations: 44 kB / 472 MB, free: 6.848 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004689/0.9857, allocations: 1.254 MB / 473.3 MB, free: 5.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.9858, allocations: 0 / 473.3 MB, free: 5.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005621/0.9914, allocations: 0.6329 MB / 473.9 MB, free: 4.969 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.001092/0.9925, allocations: 219.4 kB / 474.1 MB, free: 4.762 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009536/1.002, allocations: 3.244 MB / 477.4 MB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/1.002, allocations: 0 / 477.4 MB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00592/1.008, allocations: 2.204 MB / 479.6 MB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007126/1.015, allocations: 0.5448 MB / 480.1 MB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02445/1.04, allocations: 6.873 MB / 487 MB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005623/1.045, allocations: 2.157 MB / 489.1 MB, free: 5.594 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/1.047, allocations: 135.4 kB / 489.3 MB, free: 5.461 MB / 398.1 MB Notification: Performance of SimCode: time 2.144e-06/1.047, allocations: 0 / 489.3 MB, free: 5.461 MB / 398.1 MB Notification: Performance of Templates: time 0.5406/1.588, allocations: 102.7 MB / 0.5781 GB, free: 120.7 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