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.00117/0.00117, allocations: 108.3 kB / 16.92 MB, free: 5.781 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.00135/0.00135, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.353/1.353, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 50.33 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1022, allocations: 49.45 MB / 350.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01218/0.1144, allocations: 10.29 MB / 360.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006548/0.121, allocations: 3.213 MB / 363.6 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002729/0.1238, allocations: 55.75 kB / 363.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002694/0.1266, allocations: 0.6869 MB / 364.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003773/0.1304, allocations: 0.8815 MB / 365.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.1318, allocations: 411.5 kB / 365.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004574/0.1364, allocations: 3.374 MB / 369 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.238/0.3745, allocations: 2.604 MB / 371.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003242/0.3778, allocations: 1.506 MB / 373.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003128/0.3809, allocations: 1.852 MB / 374.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001032/0.382, allocations: 396.5 kB / 375.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001506/0.3835, allocations: 489.5 kB / 375.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.3848, allocations: 1.11 MB / 376.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00243/0.3872, allocations: 1.783 MB / 378.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005857/0.3931, allocations: 5.148 MB / 383.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3931, allocations: 1.188 kB / 383.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3931, allocations: 0 / 383.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001371/0.3933, allocations: 0 / 383.8 MB, free: 8.863 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.00894/0.4022, allocations: 3.515 MB / 387.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4023, allocations: 13.66 kB / 387.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009905/0.4033, allocations: 359.5 kB / 387.7 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.4061, allocations: 1.854 MB / 389.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.4063, allocations: 200.4 kB / 389.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003634/0.4067, allocations: 257.8 kB / 390 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005275/0.4119, allocations: 3.542 MB / 393.6 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.84e-05/0.412, allocations: 6.906 kB / 393.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002239/0.4122, allocations: 105 kB / 393.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/0.4124, allocations: 114.4 kB / 393.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004339/0.4167, allocations: 3.089 MB / 396.9 MB, free: 1.402 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0163/0.433, allocations: 10.85 MB / 407.7 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003354/0.4364, allocations: 3.086 MB / 410.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002155/0.4386, allocations: 1.386 MB / 412.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002694/0.4389, allocations: 122.4 kB / 412.3 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001732/0.4406, allocations: 1.154 MB / 413.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.737e-06/0.4406, allocations: 0 / 413.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.01975/0.4604, allocations: 8.873 MB / 422.3 MB, free: 8.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.4605, allocations: 176.2 kB / 422.5 MB, free: 8.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002864/0.4634, allocations: 1.832 MB / 424.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/0.4637, allocations: 61.7 kB / 424.4 MB, free: 6.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.4648, allocations: 1.194 MB / 425.6 MB, free: 5.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005314/0.4653, allocations: 0.5528 MB / 426.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005828/0.4659, allocations: 359.2 kB / 426.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.466, allocations: 305.1 kB / 426.8 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001576/0.4676, allocations: 0.9955 MB / 427.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001965/0.4696, allocations: 1.435 MB / 429.2 MB, free: 1.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/0.4731, allocations: 2.449 MB / 431.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.4732, allocations: 4 kB / 431.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005981/0.4791, allocations: 3.331 MB / 435 MB, free: 12.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.4792, allocations: 18.84 kB / 435 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.4792, allocations: 12 kB / 435 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002071/0.4813, allocations: 0.8762 MB / 435.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.4826, allocations: 340.8 kB / 436.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/0.4949, allocations: 10.45 MB / 446.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/0.4972, allocations: 131.8 kB / 446.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003851/0.4976, allocations: 71.98 kB / 446.9 MB, free: 15.79 MB / 366.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.002199/0.4998, allocations: 0.9209 MB / 447.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006461/0.5005, allocations: 201.6 kB / 448 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006128/0.5066, allocations: 3.109 MB / 451.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.5066, allocations: 16 kB / 451.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.858e-05/0.5067, allocations: 8 kB / 451.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.821e-05/0.5067, allocations: 7.969 kB / 451.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.5186, allocations: 6.266 MB / 457.4 MB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.5187, allocations: 4 kB / 457.4 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009267/0.5196, allocations: 202.6 kB / 457.6 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002292/0.5219, allocations: 0.932 MB / 458.6 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/0.5221, allocations: 43.98 kB / 458.6 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01322/0.5353, allocations: 12.03 MB / 470.6 MB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/0.5354, allocations: 8 kB / 470.6 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008318/0.5437, allocations: 4.497 MB / 475.1 MB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001805/0.5456, allocations: 0.4907 MB / 475.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008714/0.5465, allocations: 36 kB / 475.7 MB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.5479, allocations: 107.9 kB / 475.8 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005653/0.5485, allocations: 192.5 kB / 476 MB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.5487, allocations: 47.98 kB / 476 MB, free: 2.098 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002695/0.5514, allocations: 1.254 MB / 477.3 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5514, allocations: 4 kB / 477.3 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003185/0.5546, allocations: 0.6328 MB / 477.9 MB, free: 220 kB / 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.0005688/0.5552, allocations: 223.1 kB / 478.1 MB, free: 4 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007705/0.5629, allocations: 4.233 MB / 482.3 MB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.5629, allocations: 0 / 482.3 MB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00355/0.5665, allocations: 2.248 MB / 484.6 MB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/0.5702, allocations: 0.5674 MB / 485.2 MB, free: 8.887 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009928/0.5801, allocations: 5.759 MB / 490.9 MB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002229/0.5824, allocations: 2.188 MB / 493.1 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001468/0.5839, allocations: 449.5 kB / 493.5 MB, free: 448 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004683/0.5844, allocations: 131.4 kB / 493.7 MB, free: 316 kB / 398.1 MB Notification: Performance of SimCode: time 1.563e-06/0.5844, allocations: 4 kB / 493.7 MB, free: 312 kB / 398.1 MB Notification: Performance of Templates: time 0.06765/0.652, allocations: 37.53 MB / 0.5188 GB, free: 11.28 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins/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