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.0009716/0.0009719, allocations: 86.34 kB / 16.31 MB, free: 6.449 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.001263/0.001263, allocations: 179.7 kB / 17.21 MB, free: 6.32 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.56/1.56, allocations: 223.3 MB / 241.2 MB, free: 5.238 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002862/0.0002863, allocations: 11.12 kB / 300.8 MB, free: 5.539 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1271, allocations: 50.42 MB / 351.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01059/0.1378, allocations: 9.118 MB / 360.4 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006909/0.1447, allocations: 3.024 MB / 363.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.1462, allocations: 43.81 kB / 363.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.1477, allocations: 0.5514 MB / 364 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002152/0.1499, allocations: 0.7653 MB / 364.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007505/0.1507, allocations: 251.7 kB / 365 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003633/0.1543, allocations: 3.492 MB / 368.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002262/0.1566, allocations: 1.754 MB / 370.2 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.1586, allocations: 1.117 MB / 371.4 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002219/0.1608, allocations: 1.51 MB / 372.9 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003109/0.1611, allocations: 160 kB / 373 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006522/0.1618, allocations: 231.9 kB / 373.3 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008397/0.1626, allocations: 0.8255 MB / 374.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008033/0.1634, allocations: 0.6095 MB / 374.7 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003967/0.1674, allocations: 4.157 MB / 378.8 MB, free: 15.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1674, allocations: 0 / 378.8 MB, free: 15.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1674, allocations: 4 kB / 378.8 MB, free: 15.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001297/0.1676, allocations: 0 / 378.8 MB, free: 15.62 MB / 318.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.006432/0.174, allocations: 3.029 MB / 381.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1741, allocations: 8.031 kB / 381.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000832/0.1749, allocations: 352 kB / 382.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003272/0.1782, allocations: 1.801 MB / 384 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.1784, allocations: 201 kB / 384.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000422/0.1788, allocations: 259.9 kB / 384.5 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006436/0.1853, allocations: 3.527 MB / 388 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.158e-05/0.1853, allocations: 11.78 kB / 388 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002486/0.1856, allocations: 108 kB / 388.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.1858, allocations: 112.9 kB / 388.2 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005489/0.1913, allocations: 3.095 MB / 391.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01886/0.2101, allocations: 10.94 MB / 402.3 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003981/0.2142, allocations: 3.079 MB / 405.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002209/0.2164, allocations: 1.388 MB / 406.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002857/0.2167, allocations: 126.4 kB / 406.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001758/0.2185, allocations: 1.156 MB / 408 MB, free: 1.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.697e-06/0.2185, allocations: 0 / 408 MB, free: 1.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.0198/0.2383, allocations: 8.916 MB / 416.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.2385, allocations: 184.2 kB / 417.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003115/0.2416, allocations: 1.816 MB / 418.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001824/0.2418, allocations: 57.7 kB / 419 MB, free: 6.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.2431, allocations: 1.192 MB / 420.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005911/0.2437, allocations: 0.5623 MB / 420.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.2438, allocations: 36 kB / 420.8 MB, free: 4.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.244, allocations: 381.9 kB / 421.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.2457, allocations: 1.007 MB / 422.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001923/0.2476, allocations: 1.43 MB / 423.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/0.2495, allocations: 1.177 MB / 424.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.2496, allocations: 4 kB / 424.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.2715/0.5211, allocations: 3.332 MB / 428.1 MB, free: 62.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.5212, allocations: 8.25 kB / 428.1 MB, free: 62.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/0.5212, allocations: 13.12 kB / 428.1 MB, free: 62.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003224/0.5244, allocations: 0.8756 MB / 429 MB, free: 62.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002298/0.5268, allocations: 342.8 kB / 429.3 MB, free: 62.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01808/0.5449, allocations: 9.556 MB / 438.9 MB, free: 58.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002867/0.5478, allocations: 152.5 kB / 439 MB, free: 58.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003267/0.5481, allocations: 74.88 kB / 439.1 MB, free: 58.11 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 ($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],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002886/0.551, allocations: 0.9214 MB / 440 MB, free: 57.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008483/0.5519, allocations: 203.4 kB / 440.2 MB, free: 57.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007936/0.5598, allocations: 3.122 MB / 443.3 MB, free: 56.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.339e-05/0.5599, allocations: 15.53 kB / 443.4 MB, free: 56.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.5599, allocations: 7.875 kB / 443.4 MB, free: 56.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.473e-05/0.56, allocations: 7.406 kB / 443.4 MB, free: 56.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/0.5756, allocations: 6.288 MB / 449.7 MB, free: 53.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/0.5757, allocations: 3.688 kB / 449.7 MB, free: 53.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/0.5772, allocations: 213.4 kB / 449.9 MB, free: 53.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003603/0.5808, allocations: 0.9297 MB / 450.8 MB, free: 52.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002173/0.581, allocations: 39.77 kB / 450.8 MB, free: 52.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01494/0.596, allocations: 11.01 MB / 461.9 MB, free: 41.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.596, allocations: 3.938 kB / 461.9 MB, free: 41.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009027/0.6051, allocations: 4.521 MB / 466.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/0.607, allocations: 0.4917 MB / 466.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004474/0.6074, allocations: 39.98 kB / 466.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.6089, allocations: 119.9 kB / 467 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006001/0.6095, allocations: 200.9 kB / 467.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.6097, allocations: 43.98 kB / 467.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002345/0.612, allocations: 1.243 MB / 468.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.612, allocations: 0 / 468.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003429/0.6155, allocations: 0.6354 MB / 469.1 MB, free: 34.47 MB / 350.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005529/0.616, allocations: 182.8 kB / 469.3 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006578/0.6226, allocations: 3.261 MB / 472.6 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.6227, allocations: 0 / 472.6 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004405/0.6271, allocations: 2.257 MB / 474.8 MB, free: 28.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003906/0.631, allocations: 0.5503 MB / 475.4 MB, free: 28.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/0.6446, allocations: 6.687 MB / 482.1 MB, free: 21.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/0.6473, allocations: 2.18 MB / 484.3 MB, free: 19.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002003/0.6494, allocations: 457.5 kB / 484.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/0.6498, allocations: 129.3 kB / 484.8 MB, free: 18.55 MB / 350.1 MB Notification: Performance of SimCode: time 1.623e-06/0.6498, allocations: 3.938 kB / 484.8 MB, free: 18.55 MB / 350.1 MB Notification: Performance of Templates: time 0.05988/0.7097, allocations: 34.4 MB / 0.5071 GB, free: 0.5312 MB / 366.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