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.001292/0.001292, allocations: 101 kB / 17.01 MB, free: 6.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001598/0.001598, allocations: 193.9 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002752, allocations: 8 kB / 307.1 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1139, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009648/0.1236, allocations: 9.157 MB / 367.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006671/0.1303, allocations: 3.086 MB / 370.9 MB, free: 1.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001985/0.1323, allocations: 47.81 kB / 370.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0021/0.1344, allocations: 0.5591 MB / 371.5 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2613/0.3958, allocations: 0.7488 MB / 372.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.3974, allocations: 259.5 kB / 372.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00643/0.4038, allocations: 3.508 MB / 376 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002883/0.4067, allocations: 1.76 MB / 377.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003216/0.41, allocations: 1.128 MB / 378.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003561/0.4136, allocations: 1.511 MB / 380.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004524/0.414, allocations: 164.5 kB / 380.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.4151, allocations: 235.4 kB / 380.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001307/0.4165, allocations: 0.8248 MB / 381.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.4176, allocations: 0.6136 MB / 382.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00498/0.4226, allocations: 4.188 MB / 386.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4227, allocations: 1.094 kB / 386.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4227, allocations: 0 / 386.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001326/0.4228, allocations: 0 / 386.4 MB, free: 7.484 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.007354/0.4302, allocations: 3.034 MB / 389.4 MB, free: 5.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.589e-05/0.4303, allocations: 13.28 kB / 389.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001515/0.4318, allocations: 388.3 kB / 389.8 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/0.4354, allocations: 1.824 MB / 391.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002146/0.4357, allocations: 203.4 kB / 391.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004597/0.4361, allocations: 250.2 kB / 392.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006907/0.443, allocations: 3.528 MB / 395.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.822e-05/0.4431, allocations: 15.27 kB / 395.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002382/0.4434, allocations: 104.5 kB / 395.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001546/0.4435, allocations: 109.7 kB / 395.9 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005073/0.4486, allocations: 3.102 MB / 399 MB, free: 1.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01903/0.4677, allocations: 10.94 MB / 409.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003899/0.4716, allocations: 3.084 MB / 413 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002434/0.4741, allocations: 1.389 MB / 414.4 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003131/0.4744, allocations: 130.6 kB / 414.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001851/0.4763, allocations: 1.154 MB / 415.7 MB, free: 400 kB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 2.836e-06/0.4763, allocations: 0 / 415.7 MB, free: 400 kB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.02063/0.4969, allocations: 8.93 MB / 424.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.4971, allocations: 180.2 kB / 424.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003458/0.5006, allocations: 1.833 MB / 426.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002509/0.5008, allocations: 57.7 kB / 426.6 MB, free: 5.211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.5021, allocations: 1.199 MB / 427.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000541/0.5027, allocations: 0.5617 MB / 428.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.5028, allocations: 32 kB / 428.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.5029, allocations: 389.4 kB / 428.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.5047, allocations: 1.003 MB / 429.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002051/0.5067, allocations: 1.44 MB / 431.3 MB, free: 440 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/0.5087, allocations: 1.173 MB / 432.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.5087, allocations: 4.656 kB / 432.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006382/0.5151, allocations: 3.342 MB / 435.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.5152, allocations: 11.98 kB / 435.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.5152, allocations: 12 kB / 435.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/0.5173, allocations: 0.8763 MB / 436.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.5185, allocations: 343.4 kB / 437 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.5305, allocations: 9.555 MB / 446.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002143/0.5327, allocations: 147.8 kB / 446.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003133/0.533, allocations: 72 kB / 446.8 MB, free: 496 kB / 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.002623/0.5357, allocations: 0.9253 MB / 447.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007325/0.5364, allocations: 209.4 kB / 447.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00612/0.5425, allocations: 3.115 MB / 451 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.5426, allocations: 16 kB / 451 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.81e-05/0.5426, allocations: 8 kB / 451.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.845e-05/0.5426, allocations: 11.92 kB / 451.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/0.5553, allocations: 6.291 MB / 457.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.5553, allocations: 4 kB / 457.4 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009328/0.5563, allocations: 211.7 kB / 457.6 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002528/0.5588, allocations: 0.9323 MB / 458.5 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.559, allocations: 43.97 kB / 458.5 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01322/0.5722, allocations: 10.99 MB / 469.5 MB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.5723, allocations: 4 kB / 469.5 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008679/0.5809, allocations: 4.527 MB / 474.1 MB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/0.5825, allocations: 0.4907 MB / 474.6 MB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008346/0.5834, allocations: 35.98 kB / 474.6 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/0.5849, allocations: 115.9 kB / 474.7 MB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005143/0.5854, allocations: 204.8 kB / 474.9 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.5856, allocations: 50.17 kB / 475 MB, free: 3.586 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002568/0.5881, allocations: 1.251 MB / 476.2 MB, free: 2.344 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5882, allocations: 0 / 476.2 MB, free: 2.344 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00339/0.5915, allocations: 0.6407 MB / 476.8 MB, free: 1.703 MB / 382.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.0005797/0.5921, allocations: 179.6 kB / 477 MB, free: 1.523 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005747/0.5979, allocations: 3.258 MB / 480.3 MB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.5979, allocations: 1.938 kB / 480.3 MB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003899/0.6018, allocations: 2.264 MB / 482.5 MB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003808/0.6057, allocations: 0.5617 MB / 483.1 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/0.6183, allocations: 6.691 MB / 489.8 MB, free: 4.543 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002887/0.6212, allocations: 2.196 MB / 492 MB, free: 2.312 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002066/0.6233, allocations: 453.6 kB / 492.4 MB, free: 1.867 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000654/0.624, allocations: 131.4 kB / 492.6 MB, free: 1.738 MB / 398.1 MB Notification: Performance of SimCode: time 1.653e-06/0.624, allocations: 0 / 492.6 MB, free: 1.738 MB / 398.1 MB Notification: Performance of Templates: time 0.06556/0.6896, allocations: 34.49 MB / 0.5147 GB, free: 15.64 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.0.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