Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009684/0.0009684, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.004/1.004, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.436e-05/2.601e-05, allocations: 2.312 kB / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009479/0.009505, allocations: 10.24 MB / 283.3 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004299/0.0138, allocations: 3.237 MB / 286.5 MB, free: 4.301 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005204/0.01432, allocations: 67.56 kB / 286.6 MB, free: 4.234 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.01538, allocations: 0.6946 MB / 287.3 MB, free: 3.535 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001467/0.01684, allocations: 0.9624 MB / 288.3 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.01733, allocations: 435.2 kB / 288.7 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1222/0.1396, allocations: 3.525 MB / 292.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001978/0.1415, allocations: 1.387 MB / 293.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003045/0.1446, allocations: 2.279 MB / 295.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.1474, allocations: 1.786 MB / 297.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007929/0.1481, allocations: 397.2 kB / 298.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000901/0.149, allocations: 497.1 kB / 298.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009531/0.15, allocations: 1.168 MB / 299.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001235/0.1512, allocations: 1.238 MB / 301 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002304/0.1535, allocations: 2.963 MB / 303.9 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1535, allocations: 0.5938 kB / 303.9 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1535, allocations: 0 / 303.9 MB, free: 13.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.612e-05/0.1536, allocations: 0.6875 kB / 303.9 MB, free: 13.31 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.003579/0.1572, allocations: 3.744 MB / 307.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.1572, allocations: 8.031 kB / 307.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008473/0.158, allocations: 0.5977 MB / 308.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001615/0.1597, allocations: 1.782 MB / 310 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.505e-05/0.1598, allocations: 201.1 kB / 310.2 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002418/0.16, allocations: 251.5 kB / 310.5 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002359/0.1624, allocations: 2.151 MB / 312.6 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.708e-05/0.1624, allocations: 11.95 kB / 312.7 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001592/0.1626, allocations: 104 kB / 312.8 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.195e-05/0.1626, allocations: 112.9 kB / 312.9 MB, free: 8.176 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002109/0.1647, allocations: 0.9811 MB / 313.8 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009795/0.1745, allocations: 9.089 MB / 322.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.1763, allocations: 1.207 MB / 324.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.1775, allocations: 0.629 MB / 324.8 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003156/0.1778, allocations: 57.91 kB / 324.8 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009835/0.1788, allocations: 0.7329 MB / 325.6 MB, free: 11.43 MB / 282.7 MB Notification: Performance of pre-optimization done (n=156): time 3.737e-06/0.1788, allocations: 0 / 325.6 MB, free: 11.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=172): time 0.01106/0.1898, allocations: 4.774 MB / 330.3 MB, free: 6.648 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.1899, allocations: 176.2 kB / 330.5 MB, free: 6.441 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/0.1918, allocations: 1.515 MB / 332 MB, free: 4.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.1919, allocations: 57.7 kB / 332.1 MB, free: 4.848 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009699/0.1928, allocations: 1.309 MB / 333.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004516/0.1933, allocations: 0.5961 MB / 334 MB, free: 2.945 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005023/0.1938, allocations: 377.1 kB / 334.4 MB, free: 2.566 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1939, allocations: 476.8 kB / 334.8 MB, free: 2.098 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006682/0.1946, allocations: 295.8 kB / 335.1 MB, free: 1.809 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.1958, allocations: 0.9804 MB / 336.1 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.1975, allocations: 1.271 MB / 337.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.1975, allocations: 4 kB / 337.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003069/0.2006, allocations: 1.747 MB / 339.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.2006, allocations: 12 kB / 339.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.2006, allocations: 8 kB / 339.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/0.202, allocations: 0.4918 MB / 339.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009465/0.203, allocations: 337.2 kB / 339.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006971/0.2099, allocations: 8.053 MB / 348 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009479/0.2109, allocations: 131.8 kB / 348.1 MB, free: 4.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.211, allocations: 67.98 kB / 348.2 MB, free: 4.074 MB / 298.7 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.0006116/0.2116, allocations: 295.3 kB / 348.5 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000339/0.212, allocations: 262.7 kB / 348.7 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002802/0.2148, allocations: 1.545 MB / 350.3 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.2148, allocations: 16 kB / 350.3 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.2148, allocations: 8 kB / 350.3 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.2148, allocations: 7.969 kB / 350.3 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005335/0.2201, allocations: 3.934 MB / 354.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.2201, allocations: 4.281 kB / 354.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004748/0.2206, allocations: 210.5 kB / 354.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.2218, allocations: 0.5502 MB / 355 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.675e-05/0.2219, allocations: 39.98 kB / 355.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006331/0.2282, allocations: 9.835 MB / 364.9 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2282, allocations: 0 / 364.9 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002745/0.231, allocations: 2.126 MB / 367 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005154/0.2315, allocations: 394.5 kB / 367.4 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.2316, allocations: 47.92 kB / 367.4 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005013/0.2321, allocations: 103.9 kB / 367.5 MB, free: 208 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003089/0.2325, allocations: 188.5 kB / 367.7 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.418e-05/0.2325, allocations: 50.06 kB / 367.8 MB, free: 15.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008938/0.2334, allocations: 0.8532 MB / 368.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2334, allocations: 0 / 368.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00145/0.2349, allocations: 0.6328 MB / 369.3 MB, free: 14.5 MB / 330.7 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.0002953/0.2352, allocations: 215.6 kB / 369.5 MB, free: 14.29 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002167/0.2373, allocations: 1.964 MB / 371.4 MB, free: 12.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2373, allocations: 0 / 371.4 MB, free: 12.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.2389, allocations: 1.635 MB / 373.1 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.2402, allocations: 0.5398 MB / 373.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005868/0.2461, allocations: 4.766 MB / 378.4 MB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007932/0.2469, allocations: 0.7533 MB / 379.1 MB, free: 4.473 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006369/0.2475, allocations: 348.5 kB / 379.5 MB, free: 4.129 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.2478, allocations: 132.5 kB / 379.6 MB, free: 4 MB / 330.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2478, allocations: 0 / 379.6 MB, free: 4 MB / 330.7 MB Notification: Performance of Templates: time 0.05165/0.2995, allocations: 37.91 MB / 417.5 MB, free: 14.67 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.986518240068108]