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.001641/0.001641, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.002017/0.002017, allocations: 161 kB / 24.56 MB, free: 20 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.053/1.053, allocations: 177.1 MB / 205 MB, free: 5.297 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 2.084e-06/2.084e-06, allocations: 0 / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.733e-05/3.942e-05, allocations: 5.266 kB / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01122/0.01126, allocations: 10.3 MB / 283.3 MB, free: 7.035 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006404/0.01767, allocations: 3.233 MB / 286.5 MB, free: 3.793 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.019, allocations: 67.56 kB / 286.6 MB, free: 3.727 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.02052, allocations: 0.6985 MB / 287.3 MB, free: 3.023 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002092/0.02261, allocations: 0.9546 MB / 288.2 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007944/0.0234, allocations: 435.3 kB / 288.7 MB, free: 1.637 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1588/0.1822, allocations: 3.532 MB / 292.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002823/0.185, allocations: 1.384 MB / 293.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00371/0.1887, allocations: 2.278 MB / 295.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003205/0.1919, allocations: 1.788 MB / 297.7 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001195/0.1931, allocations: 396.8 kB / 298 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.1944, allocations: 492.3 kB / 298.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001199/0.1956, allocations: 1.173 MB / 299.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00286/0.1985, allocations: 1.238 MB / 300.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004358/0.2029, allocations: 2.962 MB / 303.9 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.2029, allocations: 0 / 303.9 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2029, allocations: 2.625 kB / 303.9 MB, free: 13.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.00016/0.203, allocations: 0 / 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.00623/0.2093, allocations: 3.743 MB / 307.6 MB, free: 11.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.2093, allocations: 9.469 kB / 307.6 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009646/0.2103, allocations: 0.5972 MB / 308.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002405/0.2127, allocations: 1.778 MB / 310 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.2128, allocations: 195.5 kB / 310.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002628/0.2131, allocations: 256.8 kB / 310.5 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002892/0.216, allocations: 2.145 MB / 312.6 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-05/0.216, allocations: 15.42 kB / 312.6 MB, free: 8.113 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001716/0.2162, allocations: 103.1 kB / 312.7 MB, free: 8.016 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.802e-05/0.2163, allocations: 120.9 kB / 312.8 MB, free: 7.895 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002058/0.2184, allocations: 0.9855 MB / 313.8 MB, free: 6.906 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01085/0.2292, allocations: 9.087 MB / 322.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.2309, allocations: 1.211 MB / 324.1 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.2319, allocations: 0.6221 MB / 324.7 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002422/0.2321, allocations: 60.8 kB / 324.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009064/0.2331, allocations: 0.729 MB / 325.5 MB, free: 11.14 MB / 282.7 MB Notification: Performance of pre-optimization done (n=156): time 3.907e-06/0.2331, allocations: 0 / 325.5 MB, free: 11.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=172): time 0.01007/0.2431, allocations: 4.763 MB / 330.3 MB, free: 6.375 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.422e-05/0.2432, allocations: 180.2 kB / 330.5 MB, free: 6.164 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/0.2452, allocations: 1.515 MB / 332 MB, free: 4.633 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.2453, allocations: 61.69 kB / 332 MB, free: 4.566 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.2464, allocations: 1.305 MB / 333.4 MB, free: 3.254 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004903/0.2469, allocations: 0.5978 MB / 334 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000412/0.2473, allocations: 374.1 kB / 334.3 MB, free: 2.289 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2474, allocations: 476.8 kB / 334.8 MB, free: 1.82 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005739/0.248, allocations: 299.8 kB / 335.1 MB, free: 1.527 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.2492, allocations: 0.9799 MB / 336.1 MB, free: 316 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.2507, allocations: 1.273 MB / 337.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/0.2507, allocations: 4 kB / 337.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003089/0.2538, allocations: 1.743 MB / 339.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.2538, allocations: 8 kB / 339.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.2538, allocations: 12 kB / 339.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.2551, allocations: 0.496 MB / 339.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007708/0.2559, allocations: 344 kB / 339.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007004/0.2629, allocations: 8.045 MB / 348 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.2641, allocations: 135.9 kB / 348.1 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.622e-05/0.2642, allocations: 67.98 kB / 348.2 MB, free: 3.789 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.0008003/0.265, allocations: 286 kB / 348.5 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003165/0.2653, allocations: 266.7 kB / 348.7 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00221/0.2675, allocations: 1.548 MB / 350.3 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.2676, allocations: 16 kB / 350.3 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.2676, allocations: 8 kB / 350.3 MB, free: 1.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.2676, allocations: 11.97 kB / 350.3 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00587/0.2734, allocations: 3.941 MB / 354.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.2735, allocations: 0 / 354.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.274, allocations: 206.3 kB / 354.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/0.2753, allocations: 0.5531 MB / 355 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.2754, allocations: 39.98 kB / 355 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007416/0.2828, allocations: 9.824 MB / 364.9 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.2828, allocations: 4 kB / 364.9 MB, free: 2.637 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003991/0.2868, allocations: 2.129 MB / 367 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007627/0.2876, allocations: 394.5 kB / 367.4 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001621/0.2877, allocations: 39.98 kB / 367.4 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005295/0.2882, allocations: 99.89 kB / 367.5 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003412/0.2886, allocations: 196.2 kB / 367.7 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.308e-05/0.2887, allocations: 47.98 kB / 367.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001063/0.2897, allocations: 0.8533 MB / 368.6 MB, free: 14.85 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2897, allocations: 0 / 368.6 MB, free: 14.85 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001777/0.2915, allocations: 0.6289 MB / 369.2 MB, free: 14.22 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.0003581/0.2919, allocations: 216.8 kB / 369.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003197/0.2951, allocations: 1.956 MB / 371.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.2951, allocations: 3.469 kB / 371.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/0.2971, allocations: 1.652 MB / 373.1 MB, free: 10.33 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.2984, allocations: 0.5378 MB / 373.6 MB, free: 9.812 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00783/0.3062, allocations: 4.765 MB / 378.4 MB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008538/0.3071, allocations: 0.7494 MB / 379.1 MB, free: 4.195 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001405/0.3085, allocations: 348.5 kB / 379.4 MB, free: 3.852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000379/0.3089, allocations: 128.5 kB / 379.6 MB, free: 3.727 MB / 330.7 MB Notification: Performance of SimCode: time 2.084e-06/0.3089, allocations: 8 kB / 379.6 MB, free: 3.719 MB / 330.7 MB Notification: Performance of Templates: time 0.06268/0.3716, allocations: 37.92 MB / 417.5 MB, free: 14.38 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: 4.505999634973705]