Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001594/0.001594, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9696/0.9696, allocations: 177 MB / 205.2 MB, free: 5.027 MB / 186.7 MB " [Timeout remaining time 179] 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_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.16e-05/1.271e-05, allocations: 9.266 kB / 273.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.007239/0.007252, allocations: 10.03 MB / 283.4 MB, free: 6.961 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00387/0.01112, allocations: 3.348 MB / 286.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004884/0.01161, allocations: 71.5 kB / 286.8 MB, free: 3.531 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009843/0.01259, allocations: 0.7103 MB / 287.6 MB, free: 2.816 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.01389, allocations: 0.974 MB / 288.5 MB, free: 1.836 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004818/0.01437, allocations: 431.4 kB / 289 MB, free: 1.414 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.107/0.1213, allocations: 3.552 MB / 292.5 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001898/0.1232, allocations: 1.412 MB / 293.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003544/0.1268, allocations: 2.435 MB / 296.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.1295, allocations: 1.723 MB / 298.1 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009143/0.1304, allocations: 386.9 kB / 298.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008219/0.1312, allocations: 486.7 kB / 298.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008067/0.1321, allocations: 1.129 MB / 300.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.1337, allocations: 1.214 MB / 301.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002643/0.1364, allocations: 2.916 MB / 304.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1364, allocations: 3.938 kB / 304.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1364, allocations: 0.5938 kB / 304.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001135/0.1365, allocations: 0.9375 kB / 304.2 MB, free: 13.07 MB / 266.7 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.003456/0.1399, allocations: 3.291 MB / 307.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.14, allocations: 8.094 kB / 307.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007029/0.1407, allocations: 481.8 kB / 308 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.142, allocations: 1.276 MB / 309.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.327e-05/0.1421, allocations: 203.7 kB / 309.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002183/0.1423, allocations: 259.7 kB / 309.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.144, allocations: 1.99 MB / 311.7 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.171e-05/0.144, allocations: 5.812 kB / 311.7 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.1442, allocations: 104 kB / 311.8 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.447e-05/0.1442, allocations: 108.9 kB / 311.9 MB, free: 8.789 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009759/0.1452, allocations: 0.7831 MB / 312.7 MB, free: 7.988 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005535/0.1508, allocations: 6.89 MB / 319.6 MB, free: 1.395 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008505/0.1516, allocations: 1.106 MB / 320.7 MB, free: 332 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000559/0.1522, allocations: 0.5132 MB / 321.2 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.1523, allocations: 53.28 kB / 321.2 MB, free: 15.77 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005606/0.1529, allocations: 0.6562 MB / 321.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of pre-optimization done (n=155): time 3.056e-06/0.1529, allocations: 0 / 321.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=171): time 0.006886/0.1598, allocations: 3.878 MB / 325.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.1598, allocations: 180.2 kB / 325.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008434/0.1607, allocations: 1.222 MB / 327.2 MB, free: 10.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.996e-05/0.1608, allocations: 57.7 kB / 327.2 MB, free: 10 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004668/0.1612, allocations: 0.9985 MB / 328.2 MB, free: 9.066 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002825/0.1615, allocations: 0.5694 MB / 328.8 MB, free: 8.531 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003207/0.1618, allocations: 338.2 kB / 329.1 MB, free: 8.238 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.986e-05/0.1619, allocations: 301.1 kB / 329.4 MB, free: 7.941 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000325/0.1622, allocations: 226.7 kB / 329.6 MB, free: 7.719 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/0.1627, allocations: 0.7386 MB / 330.4 MB, free: 6.836 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.164, allocations: 1.401 MB / 331.8 MB, free: 5.367 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.164, allocations: 4 kB / 331.8 MB, free: 5.363 MB / 282.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.001571/0.1656, allocations: 1.279 MB / 333.1 MB, free: 4.164 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.1656, allocations: 15.98 kB / 333.1 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.1656, allocations: 8 kB / 333.1 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009427/0.1665, allocations: 484.2 kB / 333.6 MB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005846/0.1671, allocations: 307.8 kB / 333.9 MB, free: 3.387 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004071/0.1712, allocations: 5.891 MB / 339.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006118/0.1718, allocations: 99.88 kB / 339.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.872e-05/0.1719, allocations: 55.98 kB / 339.9 MB, free: 13.18 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: aimc.is[3] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,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 (187): * Single equations (assignments): 182 * 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.0004879/0.1724, allocations: 247.9 kB / 340.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.1726, allocations: 175.8 kB / 340.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.1741, allocations: 1.187 MB / 341.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.1741, allocations: 20 kB / 341.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.1741, allocations: 8 kB / 341.5 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.1741, allocations: 7.969 kB / 341.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003414/0.1775, allocations: 2.761 MB / 344.3 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.1775, allocations: 288 / 344.3 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004035/0.1779, allocations: 182.6 kB / 344.5 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.179, allocations: 0.5686 MB / 345 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.703e-05/0.1791, allocations: 39.98 kB / 345.1 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004576/0.1836, allocations: 7.075 MB / 352.2 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1837, allocations: 11.41 kB / 352.2 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001887/0.1855, allocations: 1.628 MB / 353.8 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004107/0.1859, allocations: 274.5 kB / 354.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.1861, allocations: 39.98 kB / 354.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/0.1865, allocations: 71.94 kB / 354.2 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.1868, allocations: 160 kB / 354.3 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.822e-05/0.1868, allocations: 35.98 kB / 354.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004745/0.1873, allocations: 0.6035 MB / 355 MB, free: 14.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1873, allocations: 0 / 355 MB, free: 14.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001292/0.1886, allocations: 0.6211 MB / 355.6 MB, free: 13.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (aimc.inertiaRotor.w,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 (122): * Single equations (assignments): 114 * 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002612/0.1888, allocations: 188.1 kB / 355.8 MB, free: 13.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.1904, allocations: 1.53 MB / 357.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-05/0.1905, allocations: 21.5 kB / 357.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.1915, allocations: 1.232 MB / 358.6 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.1928, allocations: 0.54 MB / 359.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005025/0.1978, allocations: 4.492 MB / 363.6 MB, free: 5.523 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/0.1983, allocations: 0.6481 MB / 364.2 MB, free: 4.848 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005143/0.1989, allocations: 240.8 kB / 364.5 MB, free: 4.609 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008044/0.1997, allocations: 0.4913 MB / 365 MB, free: 4.113 MB / 314.7 MB Notification: Performance of SimCode: time 8.51e-07/0.1997, allocations: 0 / 365 MB, free: 4.113 MB / 314.7 MB Notification: Performance of Templates: time 0.05265/0.2523, allocations: 39.06 MB / 404 MB, free: 13.62 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7239997470751405]