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.001593/0.001593, allocations: 99.92 kB / 16.5 MB, free: 6.641 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.001849/0.001849, allocations: 194.6 kB / 17.42 MB, free: 6.066 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.327/1.327, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009957/0.0009958, allocations: 48.3 kB / 300 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1105, allocations: 49.45 MB / 349.4 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01789/0.1284, allocations: 10.23 MB / 359.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008494/0.137, allocations: 3.174 MB / 362.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002618/0.1396, allocations: 47.81 kB / 362.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003412/0.1432, allocations: 0.6021 MB / 363.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004891/0.1481, allocations: 0.8083 MB / 364.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001657/0.1498, allocations: 367.7 kB / 364.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007872/0.1577, allocations: 3.886 MB / 368.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2135/0.3712, allocations: 2.199 MB / 370.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002741/0.374, allocations: 1.285 MB / 372 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003202/0.3772, allocations: 1.773 MB / 373.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007134/0.3779, allocations: 232.3 kB / 374 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001256/0.3792, allocations: 337.4 kB / 374.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001114/0.3803, allocations: 0.9327 MB / 375.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002334/0.3827, allocations: 1.602 MB / 376.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005961/0.3886, allocations: 5 MB / 381.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.088e-05/0.3887, allocations: 1.125 kB / 381.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3887, allocations: 0 / 381.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002274/0.389, allocations: 0 / 381.9 MB, free: 9.125 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.01047/0.3994, allocations: 3.518 MB / 385.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3995, allocations: 9.219 kB / 385.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001127/0.4006, allocations: 357.1 kB / 385.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003185/0.4038, allocations: 1.862 MB / 387.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.404, allocations: 199.2 kB / 387.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004235/0.4044, allocations: 255.5 kB / 388 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006065/0.4105, allocations: 3.538 MB / 391.6 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.443e-05/0.4106, allocations: 14.95 kB / 391.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002592/0.4109, allocations: 102.8 kB / 391.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.411, allocations: 112.9 kB / 391.8 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004959/0.416, allocations: 3.094 MB / 394.9 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01568/0.4317, allocations: 10.86 MB / 405.8 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003333/0.435, allocations: 3.07 MB / 408.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002182/0.4372, allocations: 1.389 MB / 410.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002638/0.4375, allocations: 130.4 kB / 410.3 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001765/0.4393, allocations: 1.153 MB / 411.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.517e-06/0.4393, allocations: 0 / 411.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.02097/0.4603, allocations: 8.857 MB / 420.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.4605, allocations: 180.2 kB / 420.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/0.4638, allocations: 1.832 MB / 422.4 MB, free: 8.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004427/0.4643, allocations: 53.7 kB / 422.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.4656, allocations: 1.205 MB / 423.6 MB, free: 7.461 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007188/0.4664, allocations: 0.5548 MB / 424.2 MB, free: 6.914 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005719/0.467, allocations: 351.3 kB / 424.5 MB, free: 6.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.536e-05/0.4671, allocations: 305.1 kB / 424.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/0.4687, allocations: 0.9994 MB / 425.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001949/0.4706, allocations: 1.434 MB / 427.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003293/0.4739, allocations: 2.46 MB / 429.7 MB, free: 1.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.474, allocations: 4 kB / 429.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005919/0.4799, allocations: 3.319 MB / 433 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/0.48, allocations: 11.66 kB / 433 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/0.48, allocations: 16 kB / 433.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/0.4822, allocations: 0.884 MB / 433.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.4835, allocations: 332.8 kB / 434.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.4943, allocations: 9.552 MB / 443.8 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.4961, allocations: 135.8 kB / 443.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.4963, allocations: 68 kB / 444 MB, free: 2.516 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.001579/0.4979, allocations: 0.923 MB / 444.9 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003381/0.4982, allocations: 205.5 kB / 445.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005311/0.5035, allocations: 3.108 MB / 448.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.5035, allocations: 16 kB / 448.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.5036, allocations: 8 kB / 448.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.5036, allocations: 7.969 kB / 448.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.5141, allocations: 6.256 MB / 454.5 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.916e-06/0.5141, allocations: 8.031 kB / 454.5 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008953/0.515, allocations: 214.4 kB / 454.8 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002307/0.5173, allocations: 0.925 MB / 455.7 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.5175, allocations: 42.59 kB / 455.7 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01205/0.5295, allocations: 11 MB / 466.7 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.5296, allocations: 0 / 466.7 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007357/0.5369, allocations: 4.503 MB / 471.2 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/0.5382, allocations: 498.5 kB / 471.7 MB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002913/0.5385, allocations: 47.92 kB / 471.8 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5395, allocations: 107.9 kB / 471.9 MB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004907/0.54, allocations: 185 kB / 472 MB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.5401, allocations: 47.98 kB / 472.1 MB, free: 5.891 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001949/0.5421, allocations: 1.255 MB / 473.3 MB, free: 4.645 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5421, allocations: 0 / 473.3 MB, free: 4.645 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00251/0.5446, allocations: 0.6368 MB / 474 MB, free: 4.008 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.0004329/0.5451, allocations: 224.3 kB / 474.2 MB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005301/0.5504, allocations: 3.241 MB / 477.4 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.5504, allocations: 4 kB / 477.4 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003325/0.5537, allocations: 2.243 MB / 479.7 MB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003024/0.5568, allocations: 0.5352 MB / 480.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/0.5672, allocations: 6.864 MB / 487.1 MB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00189/0.5691, allocations: 2.188 MB / 489.3 MB, free: 4.574 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001557/0.5707, allocations: 449.5 kB / 489.7 MB, free: 4.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004237/0.5711, allocations: 131.4 kB / 489.8 MB, free: 4.004 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5711, allocations: 0 / 489.8 MB, free: 4.004 MB / 398.1 MB Notification: Performance of Templates: time 0.0585/0.6296, allocations: 35.97 MB / 0.5135 GB, free: 0.5 MB / 430.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