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.001088/0.001088, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.0009966/0.0009969, allocations: 200.1 kB / 18 MB, free: 5.168 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.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 43.88 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2936, allocations: 49.44 MB / 400.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01426/0.3079, allocations: 11.81 MB / 412.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007204/0.3152, allocations: 3.731 MB / 416.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.3171, allocations: 79.69 kB / 416.4 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.3198, allocations: 0.8577 MB / 417.2 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003852/0.3237, allocations: 1.084 MB / 418.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001542/0.3253, allocations: 499.3 kB / 418.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00599/0.3313, allocations: 4.226 MB / 423 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005231/0.3365, allocations: 3.289 MB / 426.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00349/0.34, allocations: 1.904 MB / 428.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004239/0.3443, allocations: 2.328 MB / 430.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001417/0.3457, allocations: 0.4961 MB / 431 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002138/0.3479, allocations: 0.578 MB / 431.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002476/0.3504, allocations: 1.399 MB / 433 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004613/0.355, allocations: 2.205 MB / 435.2 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/0.3653, allocations: 6.567 MB / 441.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.059e-05/0.3653, allocations: 0 / 441.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3653, allocations: 0 / 441.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003133/0.3657, allocations: 8 kB / 441.8 MB, free: 15.76 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.01434/0.38, allocations: 4.404 MB / 446.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.3801, allocations: 8.031 kB / 446.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001925/0.382, allocations: 458.3 kB / 446.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004788/0.3868, allocations: 2.408 MB / 449.1 MB, free: 8.371 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.387, allocations: 234.1 kB / 449.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006503/0.3877, allocations: 311.9 kB / 449.6 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007835/0.3955, allocations: 4.361 MB / 454 MB, free: 3.387 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.767e-05/0.3957, allocations: 15.89 kB / 454 MB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002827/0.3959, allocations: 124 kB / 454.1 MB, free: 3.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.3961, allocations: 134 kB / 454.2 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006216/0.4023, allocations: 3.775 MB / 458 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02061/0.4229, allocations: 13.41 MB / 471.4 MB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003579/0.4265, allocations: 2.911 MB / 474.3 MB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002612/0.4292, allocations: 1.68 MB / 476 MB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002645/0.4295, allocations: 130.4 kB / 476.1 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.4295, allocations: 51.88 kB / 476.2 MB, free: 12.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=164): time 3.096e-06/0.4295, allocations: 3.938 kB / 476.2 MB, free: 12.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.01858/0.4481, allocations: 9.037 MB / 485.2 MB, free: 3.387 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.4482, allocations: 73.41 kB / 485.3 MB, free: 3.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004885/0.4531, allocations: 2.353 MB / 487.6 MB, free: 0.918 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002763/0.4534, allocations: 61.69 kB / 487.7 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00119/0.4546, allocations: 1.497 MB / 489.2 MB, free: 15.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006193/0.4552, allocations: 0.6352 MB / 489.8 MB, free: 14.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007539/0.456, allocations: 367.5 kB / 490.2 MB, free: 14.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.515e-05/0.4561, allocations: 301.1 kB / 490.5 MB, free: 14.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001876/0.458, allocations: 1.128 MB / 491.6 MB, free: 12.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00204/0.4601, allocations: 1.571 MB / 493.2 MB, free: 11.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/0.464, allocations: 2.784 MB / 496 MB, free: 8.203 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-05/0.464, allocations: 4 kB / 496 MB, free: 8.199 MB / 414.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006332/0.4703, allocations: 3.601 MB / 499.6 MB, free: 4.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.749e-05/0.4704, allocations: 19.92 kB / 499.6 MB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.249e-05/0.4705, allocations: 12 kB / 499.6 MB, free: 4.539 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002421/0.4729, allocations: 0.8061 MB / 0.4887 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00195/0.4749, allocations: 459.3 kB / 0.4891 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.4863, allocations: 11.17 MB / 0.5 GB, free: 7.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.4885, allocations: 127.9 kB / 0.5002 GB, free: 7.262 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003138/0.4888, allocations: 79.98 kB / 0.5002 GB, free: 7.184 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.002241/0.4911, allocations: 1.088 MB / 0.5013 GB, free: 6.086 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007241/0.4918, allocations: 258.3 kB / 0.5015 GB, free: 5.832 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006144/0.498, allocations: 3.309 MB / 0.5048 GB, free: 2.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.498, allocations: 20 kB / 0.5048 GB, free: 2.461 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/0.498, allocations: 8 kB / 0.5048 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.692e-05/0.4981, allocations: 7.969 kB / 0.5048 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.5112, allocations: 6.844 MB / 0.5115 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/0.5113, allocations: 8.219 kB / 0.5115 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/0.5126, allocations: 291.6 kB / 0.5118 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00254/0.5151, allocations: 0.9274 MB / 0.5127 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001703/0.5153, allocations: 39.98 kB / 0.5127 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/0.5292, allocations: 14.63 MB / 0.527 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.5292, allocations: 4 kB / 0.527 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007732/0.5369, allocations: 4.862 MB / 0.5318 GB, free: 5.656 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/0.5384, allocations: 0.5735 MB / 0.5323 GB, free: 5.062 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006438/0.539, allocations: 43.92 kB / 0.5324 GB, free: 5.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.5406, allocations: 119.9 kB / 0.5325 GB, free: 4.902 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004172/0.5411, allocations: 153.7 kB / 0.5326 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/0.5412, allocations: 51.98 kB / 0.5327 GB, free: 4.699 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002927/0.5441, allocations: 1.625 MB / 0.5343 GB, free: 3.059 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5442, allocations: 4 kB / 0.5343 GB, free: 3.055 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002438/0.5466, allocations: 0.7031 MB / 0.5349 GB, free: 2.352 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.0004954/0.5471, allocations: 222.1 kB / 0.5352 GB, free: 2.129 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2293/0.7764, allocations: 3.592 MB / 0.5387 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/0.7765, allocations: 1.062 kB / 0.5387 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004286/0.7808, allocations: 2.515 MB / 0.5411 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.004092/0.7849, allocations: 0.7079 MB / 0.5418 GB, free: 130.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.7954, allocations: 6.845 MB / 0.5485 GB, free: 127.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001943/0.7974, allocations: 2.522 MB / 0.551 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001856/0.7993, allocations: 0.5875 MB / 0.5515 GB, free: 126 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004506/0.7997, allocations: 156.4 kB / 0.5517 GB, free: 126 MB / 462.1 MB Notification: Performance of SimCode: time 1.813e-06/0.7997, allocations: 3.875 kB / 0.5517 GB, free: 126 MB / 462.1 MB Notification: Performance of Templates: time 0.0563/0.856, allocations: 40.57 MB / 0.5913 GB, free: 87.29 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