Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aims.i_0_r|aims.ir.1.|aims.ir.2.|aims.idq_rr.1.|aims.idq_rr.2.|aims.is.1.|aims.is.2.|aims.idq_sr.1.|aims.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aims.i_0_r|aims.ir.1.|aims.ir.2.|aims.idq_rr.1.|aims.idq_rr.2.|aims.is.1.|aims.is.2.|aims.idq_sr.1.|aims.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001357/0.001357, allocations: 191 kB / 18 MB, free: 5.207 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.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3152, allocations: 49.44 MB / 400.7 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01233/0.3275, allocations: 11.81 MB / 412.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007343/0.3349, allocations: 3.739 MB / 416.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001706/0.3367, allocations: 75.69 kB / 416.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002665/0.3395, allocations: 0.9046 MB / 417.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003719/0.3432, allocations: 1.138 MB / 418.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.3445, allocations: 495.3 kB / 418.9 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0051/0.3496, allocations: 4.226 MB / 423.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003875/0.3535, allocations: 3.293 MB / 426.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002755/0.3563, allocations: 1.908 MB / 428.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00326/0.3595, allocations: 2.331 MB / 430.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008005/0.3604, allocations: 0.4999 MB / 431.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.3615, allocations: 0.5818 MB / 431.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001292/0.3628, allocations: 1.391 MB / 433.1 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002409/0.3652, allocations: 2.209 MB / 435.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0056/0.3709, allocations: 6.547 MB / 441.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3709, allocations: 4 kB / 441.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3709, allocations: 0 / 441.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001135/0.371, allocations: 4 kB / 441.9 MB, free: 15.68 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.007833/0.3788, allocations: 4.298 MB / 446.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.3789, allocations: 12.03 kB / 446.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009915/0.3799, allocations: 436.1 kB / 446.6 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00405/0.384, allocations: 2.39 MB / 449 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.3841, allocations: 238.1 kB / 449.2 MB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004769/0.3846, allocations: 307.9 kB / 449.5 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006627/0.3913, allocations: 4.369 MB / 453.9 MB, free: 3.438 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.661e-05/0.3913, allocations: 4 kB / 453.9 MB, free: 3.434 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002889/0.3916, allocations: 128 kB / 454 MB, free: 3.309 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.3918, allocations: 134 kB / 454.2 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006009/0.3978, allocations: 3.779 MB / 458 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02015/0.4179, allocations: 13.37 MB / 471.3 MB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003577/0.4216, allocations: 2.911 MB / 474.2 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00268/0.4243, allocations: 1.68 MB / 475.9 MB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002915/0.4246, allocations: 134.4 kB / 476 MB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.189e-05/0.4247, allocations: 47.88 kB / 476.1 MB, free: 12.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=164): time 3.416e-06/0.4247, allocations: 0 / 476.1 MB, free: 12.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.01934/0.444, allocations: 8.981 MB / 485.1 MB, free: 3.535 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.647e-05/0.4441, allocations: 73.41 kB / 485.1 MB, free: 3.449 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005128/0.4493, allocations: 2.361 MB / 487.5 MB, free: 1.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001671/0.4494, allocations: 57.7 kB / 487.6 MB, free: 0.9961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/0.4507, allocations: 1.466 MB / 489 MB, free: 15.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006252/0.4514, allocations: 0.6046 MB / 489.6 MB, free: 14.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007231/0.4521, allocations: 367.3 kB / 490 MB, free: 14.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.4522, allocations: 301.1 kB / 490.3 MB, free: 14.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001873/0.4541, allocations: 1.132 MB / 491.4 MB, free: 13.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002143/0.4563, allocations: 1.563 MB / 493 MB, free: 11.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003989/0.4603, allocations: 2.788 MB / 495.8 MB, free: 8.406 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/0.4603, allocations: 4 kB / 495.8 MB, free: 8.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.0064/0.4667, allocations: 3.596 MB / 499.4 MB, free: 4.773 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.4667, allocations: 11.94 kB / 499.4 MB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.474e-05/0.4668, allocations: 12 kB / 499.4 MB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002076/0.4689, allocations: 0.8135 MB / 0.4885 GB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.4706, allocations: 455.3 kB / 0.4889 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/0.4814, allocations: 11.16 MB / 0.4998 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.4834, allocations: 135.8 kB / 0.4999 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003179/0.4837, allocations: 72 kB / 0.5 GB, free: 7.402 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002054/0.4858, allocations: 1.088 MB / 0.5011 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000685/0.4865, allocations: 249 kB / 0.5013 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005893/0.4924, allocations: 3.293 MB / 0.5045 GB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.897e-05/0.4925, allocations: 24 kB / 0.5046 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-05/0.4925, allocations: 4 kB / 0.5046 GB, free: 2.695 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.481e-05/0.4925, allocations: 7.969 kB / 0.5046 GB, free: 2.688 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.5055, allocations: 6.848 MB / 0.5113 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.5055, allocations: 8.031 kB / 0.5113 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.5068, allocations: 299.5 kB / 0.5115 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002427/0.5093, allocations: 0.9197 MB / 0.5124 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001613/0.5095, allocations: 39.98 kB / 0.5125 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01394/0.5234, allocations: 14.62 MB / 0.5268 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.922e-06/0.5234, allocations: 4.031 kB / 0.5268 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008076/0.5315, allocations: 4.853 MB / 0.5315 GB, free: 5.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.5331, allocations: 0.5643 MB / 0.5321 GB, free: 5.324 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006362/0.5337, allocations: 39.94 kB / 0.5321 GB, free: 5.285 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/0.5353, allocations: 123.9 kB / 0.5322 GB, free: 5.164 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/0.5358, allocations: 157.7 kB / 0.5324 GB, free: 5.008 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/0.5359, allocations: 47.98 kB / 0.5324 GB, free: 4.961 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003043/0.539, allocations: 1.625 MB / 0.534 GB, free: 3.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.539, allocations: 4 kB / 0.534 GB, free: 3.316 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002455/0.5414, allocations: 0.7109 MB / 0.5347 GB, free: 2.605 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (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.0004647/0.5419, allocations: 215 kB / 0.5349 GB, free: 2.387 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2345/0.7764, allocations: 3.584 MB / 0.5384 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/0.7765, allocations: 0.5312 kB / 0.5384 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004858/0.7814, allocations: 2.503 MB / 0.5408 GB, free: 130.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004014/0.7854, allocations: 0.7291 MB / 0.5415 GB, free: 130.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.7959, allocations: 6.733 MB / 0.5481 GB, free: 127.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/0.7979, allocations: 2.521 MB / 0.5506 GB, free: 126.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001733/0.7996, allocations: 0.582 MB / 0.5512 GB, free: 126.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004416/0.8001, allocations: 159.4 kB / 0.5513 GB, free: 126.2 MB / 462.1 MB Notification: Performance of SimCode: time 2.525e-06/0.8001, allocations: 0 / 0.5513 GB, free: 126.2 MB / 462.1 MB Notification: Performance of Templates: time 0.06095/0.861, allocations: 40.57 MB / 0.5909 GB, free: 87.75 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches