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.002458/0.002458, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002847/0.002847, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 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.64/1.64, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.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.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.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.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.841e-05/4.053e-05, allocations: 2.312 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01562/0.01566, allocations: 10.2 MB / 282.5 MB, free: 7.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007489/0.02315, allocations: 3.237 MB / 285.8 MB, free: 4.324 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.02467, allocations: 67.56 kB / 285.8 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001977/0.02665, allocations: 0.6946 MB / 286.5 MB, free: 3.559 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003085/0.02974, allocations: 0.9624 MB / 287.5 MB, free: 2.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.0308, allocations: 431.3 kB / 287.9 MB, free: 2.168 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1285/0.1593, allocations: 3.526 MB / 291.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.1614, allocations: 1.377 MB / 292.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003377/0.1648, allocations: 2.28 MB / 295.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002854/0.1676, allocations: 1.791 MB / 296.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007112/0.1683, allocations: 397.2 kB / 297.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.1695, allocations: 490.3 kB / 297.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.1705, allocations: 1.173 MB / 298.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001757/0.1723, allocations: 1.235 MB / 300.2 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004934/0.1772, allocations: 5.355 MB / 305.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1772, allocations: 1.375 kB / 305.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1772, allocations: 0 / 305.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001326/0.1774, allocations: 0 / 305.5 MB, free: 12.11 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.007004/0.1844, allocations: 4.003 MB / 309.5 MB, free: 9.402 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.1844, allocations: 10.22 kB / 309.5 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/0.1857, allocations: 0.6008 MB / 310.1 MB, free: 9.125 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003077/0.1888, allocations: 1.809 MB / 311.9 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.1889, allocations: 199.9 kB / 312.1 MB, free: 7.891 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003228/0.1892, allocations: 257.1 kB / 312.4 MB, free: 7.805 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00488/0.1941, allocations: 3.445 MB / 315.8 MB, free: 4.445 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.059e-05/0.1941, allocations: 7.953 kB / 315.8 MB, free: 4.438 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/0.1944, allocations: 107.1 kB / 316 MB, free: 4.336 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.1945, allocations: 112.9 kB / 316.1 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003952/0.1984, allocations: 2.458 MB / 318.5 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02376/0.2222, allocations: 12.61 MB / 331.1 MB, free: 4.859 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003251/0.2254, allocations: 1.642 MB / 332.8 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002137/0.2276, allocations: 0.9847 MB / 333.8 MB, free: 2.266 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002745/0.2278, allocations: 57.28 kB / 333.8 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002088/0.2299, allocations: 1.072 MB / 334.9 MB, free: 1.078 MB / 282.7 MB Notification: Performance of pre-optimization done (n=156): time 3.497e-06/0.2299, allocations: 0 / 334.9 MB, free: 1.078 MB / 282.7 MB Notification: Performance of matching and sorting (n=172): time 0.01816/0.2481, allocations: 6.15 MB / 341 MB, free: 10.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003734/0.2485, allocations: 180.2 kB / 341.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003509/0.252, allocations: 2.077 MB / 343.3 MB, free: 8.617 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.2521, allocations: 57.7 kB / 343.3 MB, free: 8.555 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/0.2537, allocations: 1.387 MB / 344.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007326/0.2545, allocations: 0.6366 MB / 345.4 MB, free: 6.531 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008015/0.2553, allocations: 441.1 kB / 345.8 MB, free: 6.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002463/0.2555, allocations: 476.8 kB / 346.3 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001375/0.2569, allocations: 0.6167 MB / 346.9 MB, free: 5.004 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00226/0.2591, allocations: 1.366 MB / 348.2 MB, free: 3.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003411/0.2626, allocations: 1.981 MB / 350.2 MB, free: 1.254 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.2626, allocations: 4 kB / 350.2 MB, free: 1.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005517/0.2681, allocations: 2.471 MB / 352.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.2681, allocations: 12.09 kB / 352.7 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.2681, allocations: 12 kB / 352.7 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002258/0.2704, allocations: 0.6322 MB / 353.4 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.2717, allocations: 339.8 kB / 353.7 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/0.285, allocations: 9.589 MB / 363.3 MB, free: 3.953 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.2871, allocations: 127.8 kB / 363.4 MB, free: 3.828 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000358/0.2875, allocations: 71.98 kB / 363.5 MB, free: 3.758 MB / 314.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.002742/0.2902, allocations: 0.7775 MB / 364.3 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007429/0.2909, allocations: 258.7 kB / 364.5 MB, free: 2.734 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004997/0.2959, allocations: 2.176 MB / 366.7 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.931e-05/0.296, allocations: 16 kB / 366.7 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.296, allocations: 8 kB / 366.7 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/0.296, allocations: 7.969 kB / 366.7 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.3079, allocations: 5.183 MB / 371.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.3079, allocations: 4 kB / 371.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000927/0.3088, allocations: 207.2 kB / 372.1 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/0.3112, allocations: 0.6718 MB / 372.8 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000172/0.3114, allocations: 43.97 kB / 372.8 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01405/0.3254, allocations: 11.11 MB / 383.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.3255, allocations: 7.938 kB / 383.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006818/0.3323, allocations: 3.074 MB / 387 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/0.3339, allocations: 398.5 kB / 387.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004204/0.3343, allocations: 36 kB / 387.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.3354, allocations: 103.9 kB / 387.5 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005873/0.336, allocations: 200.7 kB / 387.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.3361, allocations: 47.98 kB / 387.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002167/0.3383, allocations: 1.193 MB / 389 MB, free: 9.738 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3383, allocations: 0 / 389 MB, free: 9.738 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002467/0.3407, allocations: 0.6328 MB / 389.6 MB, free: 9.105 MB / 346.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.000466/0.3412, allocations: 205.2 kB / 389.8 MB, free: 8.906 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005832/0.347, allocations: 2.603 MB / 392.4 MB, free: 6.285 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.347, allocations: 0 / 392.4 MB, free: 6.285 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003848/0.3509, allocations: 1.951 MB / 394.4 MB, free: 4.281 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003038/0.3539, allocations: 0.5378 MB / 394.9 MB, free: 3.762 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.3642, allocations: 5.098 MB / 400 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002167/0.3663, allocations: 1.513 MB / 401.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001417/0.3677, allocations: 344.5 kB / 401.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000417/0.3682, allocations: 132.5 kB / 402 MB, free: 12.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/0.3682, allocations: 0 / 402 MB, free: 12.57 MB / 362.7 MB Notification: Performance of Templates: time 0.1932/0.5614, allocations: 37.9 MB / 439.9 MB, free: 117.4 MB / 378.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.656318566994742]