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.001084/0.001084, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002088/0.0002089, allocations: 4 kB / 307.7 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1067, allocations: 51.52 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01187/0.1186, allocations: 9.721 MB / 369 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007342/0.126, allocations: 3.221 MB / 372.2 MB, free: 304 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.1278, allocations: 47.75 kB / 372.2 MB, free: 256 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2174/0.3452, allocations: 0.597 MB / 372.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.3486, allocations: 0.8067 MB / 373.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.3498, allocations: 381 kB / 374 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005907/0.3557, allocations: 3.902 MB / 377.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002782/0.3585, allocations: 2.19 MB / 380.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002442/0.361, allocations: 1.133 MB / 381.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003368/0.3644, allocations: 1.575 MB / 382.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006576/0.3651, allocations: 163.3 kB / 383 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.3665, allocations: 277.7 kB / 383.2 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009807/0.3675, allocations: 0.8322 MB / 384.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.3695, allocations: 1.502 MB / 385.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00525/0.3747, allocations: 4.862 MB / 390.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3748, allocations: 0.9375 kB / 390.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.3748, allocations: 0 / 390.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001431/0.3749, allocations: 0 / 390.4 MB, free: 4.684 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.007391/0.3823, allocations: 3.02 MB / 393.5 MB, free: 2.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3824, allocations: 8.906 kB / 393.5 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.3838, allocations: 388.4 kB / 393.8 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003112/0.3869, allocations: 1.885 MB / 395.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.387, allocations: 194.5 kB / 395.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004066/0.3874, allocations: 263.2 kB / 396.2 MB, free: 1.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005776/0.3932, allocations: 3.552 MB / 399.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.324e-05/0.3933, allocations: 10.97 kB / 399.7 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002416/0.3936, allocations: 108.7 kB / 399.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/0.3937, allocations: 108.8 kB / 400 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005357/0.399, allocations: 3.119 MB / 403.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0202/0.4193, allocations: 10.94 MB / 414 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004223/0.4235, allocations: 3.1 MB / 417.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002511/0.4261, allocations: 1.398 MB / 418.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003192/0.4264, allocations: 122.4 kB / 418.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002187/0.4286, allocations: 1.156 MB / 419.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 6.052e-06/0.4287, allocations: 0 / 419.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.02307/0.4517, allocations: 9.014 MB / 428.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.4519, allocations: 184.1 kB / 429 MB, free: 1.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003517/0.4554, allocations: 1.844 MB / 430.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001763/0.4556, allocations: 57.7 kB / 430.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.4568, allocations: 1.202 MB / 432.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005765/0.4574, allocations: 0.5565 MB / 432.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002966/0.4577, allocations: 169.6 kB / 432.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.373e-05/0.4578, allocations: 305.1 kB / 433.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/0.4596, allocations: 1.015 MB / 434.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002108/0.4617, allocations: 1.442 MB / 435.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003902/0.4656, allocations: 2.477 MB / 438 MB, free: 7.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/0.4657, allocations: 3.938 kB / 438 MB, free: 7.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006578/0.4723, allocations: 3.357 MB / 441.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.4723, allocations: 12 kB / 441.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.189e-05/0.4724, allocations: 12 kB / 441.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002266/0.4747, allocations: 0.887 MB / 442.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.476, allocations: 343.5 kB / 442.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/0.4884, allocations: 9.555 MB / 452.2 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/0.4908, allocations: 151.8 kB / 452.3 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000348/0.4911, allocations: 67.98 kB / 452.4 MB, free: 9.188 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.002466/0.4936, allocations: 0.9331 MB / 453.3 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000671/0.4943, allocations: 209.4 kB / 453.5 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006342/0.5007, allocations: 3.123 MB / 456.7 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.017e-05/0.5007, allocations: 16 kB / 456.7 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.942e-05/0.5007, allocations: 8 kB / 456.7 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.5008, allocations: 7.969 kB / 456.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01493/0.5157, allocations: 6.318 MB / 463 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/0.5158, allocations: 3.938 kB / 463 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009516/0.5167, allocations: 211.7 kB / 463.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002578/0.5193, allocations: 0.9366 MB / 464.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001589/0.5195, allocations: 35.98 kB / 464.2 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01387/0.5334, allocations: 11 MB / 475.2 MB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.5334, allocations: 12.03 kB / 475.2 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008196/0.5416, allocations: 4.543 MB / 479.8 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/0.5431, allocations: 0.4984 MB / 480.3 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006966/0.5438, allocations: 39.94 kB / 480.3 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/0.5453, allocations: 115.9 kB / 480.4 MB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005175/0.5458, allocations: 200.9 kB / 480.6 MB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.546, allocations: 47.98 kB / 480.7 MB, free: 12.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002313/0.5483, allocations: 1.267 MB / 481.9 MB, free: 10.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5483, allocations: 0 / 481.9 MB, free: 10.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002794/0.5511, allocations: 0.6329 MB / 482.6 MB, free: 10.32 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.0005099/0.5516, allocations: 213.2 kB / 482.8 MB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006177/0.5578, allocations: 3.27 MB / 486 MB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.5578, allocations: 4.25 kB / 486 MB, free: 6.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003912/0.5618, allocations: 2.265 MB / 488.3 MB, free: 4.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00436/0.5661, allocations: 0.5522 MB / 488.9 MB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/0.5786, allocations: 6.981 MB / 495.8 MB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002652/0.5813, allocations: 2.192 MB / 498 MB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001756/0.5831, allocations: 465.6 kB / 498.5 MB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005751/0.5837, allocations: 123.4 kB / 498.6 MB, free: 10.02 MB / 414.1 MB Notification: Performance of SimCode: time 1.123e-06/0.5837, allocations: 7.938 kB / 498.6 MB, free: 10.02 MB / 414.1 MB Notification: Performance of Templates: time 0.06682/0.6505, allocations: 35.42 MB / 0.5215 GB, free: 6.984 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