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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001654/0.001654, allocations: 110.7 kB / 17.33 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001632/0.001632, allocations: 213.8 kB / 18.27 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.5 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 59.42 kB / 306.5 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1159, allocations: 50.54 MB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01291/0.1288, allocations: 10.27 MB / 367.3 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007251/0.1361, allocations: 3.233 MB / 370.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002069/0.1382, allocations: 47.81 kB / 370.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2076/0.3459, allocations: 0.6184 MB / 371.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004309/0.3503, allocations: 0.7954 MB / 372 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001482/0.3518, allocations: 382.3 kB / 372.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006881/0.3587, allocations: 3.43 MB / 375.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004066/0.3628, allocations: 2.607 MB / 378.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004145/0.3669, allocations: 1.545 MB / 380 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004165/0.3711, allocations: 1.902 MB / 381.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008958/0.372, allocations: 396.4 kB / 382.2 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.3739, allocations: 494.5 kB / 382.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001353/0.3753, allocations: 1.117 MB / 383.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003726/0.379, allocations: 1.78 MB / 385.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006404/0.3855, allocations: 5.175 MB / 390.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3855, allocations: 0 / 390.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3855, allocations: 1.906 kB / 390.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001626/0.3857, allocations: 4 kB / 390.8 MB, free: 3.895 MB / 302.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.009112/0.3948, allocations: 3.532 MB / 394.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.3948, allocations: 10.31 kB / 394.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001331/0.3962, allocations: 383.8 kB / 394.7 MB, free: 1.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003357/0.3996, allocations: 1.879 MB / 396.6 MB, free: 20 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002074/0.3998, allocations: 205.3 kB / 396.8 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004039/0.4002, allocations: 264.4 kB / 397.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006539/0.4067, allocations: 3.538 MB / 400.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.906e-05/0.4068, allocations: 3.938 kB / 400.6 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002611/0.4071, allocations: 104 kB / 400.7 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/0.4072, allocations: 112.9 kB / 400.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005982/0.4132, allocations: 3.091 MB / 403.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02234/0.4356, allocations: 10.86 MB / 414.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004472/0.4401, allocations: 3.079 MB / 417.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00251/0.4427, allocations: 1.394 MB / 419.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003377/0.443, allocations: 122.4 kB / 419.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002051/0.4451, allocations: 1.155 MB / 420.5 MB, free: 9.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.517e-06/0.4451, allocations: 0 / 420.5 MB, free: 9.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.0229/0.468, allocations: 8.89 MB / 429.4 MB, free: 292 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001733/0.4682, allocations: 176.2 kB / 429.6 MB, free: 76 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003569/0.4718, allocations: 1.848 MB / 431.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000323/0.4721, allocations: 61.64 kB / 431.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001466/0.4736, allocations: 1.202 MB / 432.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007231/0.4743, allocations: 0.5566 MB / 433.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006673/0.475, allocations: 355.3 kB / 433.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.4752, allocations: 305.1 kB / 433.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.477, allocations: 1.003 MB / 434.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/0.4791, allocations: 1.434 MB / 436.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003802/0.4829, allocations: 2.45 MB / 438.8 MB, free: 6.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.4829, allocations: 7.938 kB / 438.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006416/0.4893, allocations: 3.326 MB / 442.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.4894, allocations: 12 kB / 442.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.232e-05/0.4894, allocations: 12 kB / 442.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/0.4917, allocations: 0.8811 MB / 443 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.4932, allocations: 335.5 kB / 443.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01405/0.5073, allocations: 10.44 MB / 453.8 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002448/0.5098, allocations: 131.9 kB / 453.9 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/0.51, allocations: 67.98 kB / 454 MB, free: 6.902 MB / 366.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 (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.00227/0.5123, allocations: 0.9282 MB / 454.9 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000664/0.513, allocations: 205.5 kB / 455.1 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006298/0.5193, allocations: 3.107 MB / 458.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.391e-05/0.5193, allocations: 16 kB / 458.2 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.083e-05/0.5194, allocations: 15.98 kB / 458.2 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.5194, allocations: 7.969 kB / 458.2 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01327/0.5327, allocations: 6.264 MB / 464.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.5327, allocations: 8.062 kB / 464.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009242/0.5337, allocations: 207.7 kB / 464.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/0.5361, allocations: 0.9329 MB / 465.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000157/0.5363, allocations: 43.91 kB / 465.7 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01568/0.552, allocations: 12.02 MB / 477.7 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.552, allocations: 0 / 477.7 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008749/0.5608, allocations: 4.512 MB / 482.2 MB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/0.5624, allocations: 0.4906 MB / 482.7 MB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003697/0.5628, allocations: 43.98 kB / 482.8 MB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.5639, allocations: 95.89 kB / 482.9 MB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005547/0.5645, allocations: 201 kB / 483.1 MB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.5646, allocations: 43.98 kB / 483.1 MB, free: 9.023 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002226/0.5668, allocations: 1.271 MB / 484.4 MB, free: 7.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5668, allocations: 0 / 484.4 MB, free: 7.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002692/0.5695, allocations: 0.6371 MB / 485 MB, free: 7.125 MB / 398.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 (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.0005365/0.5701, allocations: 205.2 kB / 485.2 MB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008568/0.5787, allocations: 4.238 MB / 489.4 MB, free: 2.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5787, allocations: 0 / 489.4 MB, free: 2.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004004/0.5827, allocations: 2.254 MB / 491.7 MB, free: 268 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003504/0.5863, allocations: 0.5844 MB / 492.3 MB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.5992, allocations: 6.873 MB / 499.2 MB, free: 8.773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002671/0.6019, allocations: 2.188 MB / 0.4896 GB, free: 6.551 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00199/0.6039, allocations: 453.6 kB / 0.49 GB, free: 6.105 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004467/0.6043, allocations: 135.4 kB / 0.4902 GB, free: 5.973 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6044, allocations: 4 kB / 0.4902 GB, free: 5.969 MB / 414.1 MB Notification: Performance of Templates: time 0.07936/0.6837, allocations: 37.4 MB / 0.5267 GB, free: 0.9961 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches