Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AsynchronousInductionMachines.AIMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aims.i_0_r|aimc.ir.1.|aimc.ir.2.|aims.idq_rr.1.|aims.idq_rr.2.|aimc.is.1.|aimc.is.2.|aims.idq_sr.1.|aims.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aims.i_0_r|aimc.ir.1.|aimc.ir.2.|aims.idq_rr.1.|aims.idq_rr.2.|aimc.is.1.|aimc.is.2.|aims.idq_sr.1.|aims.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 103 kB / 17.58 MB, free: 5.426 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.00128/0.00128, allocations: 192.2 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 59.91 kB / 280.7 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.105, allocations: 46.63 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start): time 0.01486/0.1199, allocations: 11.76 MB / 339 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009223/0.1292, allocations: 3.802 MB / 342.8 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002987/0.1322, allocations: 63.69 kB / 342.9 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003096/0.1354, allocations: 0.8617 MB / 343.8 MB, free: 3.898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005379/0.1408, allocations: 1.08 MB / 344.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.1429, allocations: 0.4954 MB / 345.3 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006006/0.1489, allocations: 4.246 MB / 349.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003729/0.1527, allocations: 3.206 MB / 352.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003004/0.1557, allocations: 1.896 MB / 354.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002991/0.1587, allocations: 2.331 MB / 357 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006573/0.1594, allocations: 0.4961 MB / 357.5 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.1605, allocations: 0.5819 MB / 358.1 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001371/0.1619, allocations: 1.395 MB / 359.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002574/0.1644, allocations: 2.205 MB / 361.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005704/0.1702, allocations: 6.496 MB / 368.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1702, allocations: 0 / 368.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1702, allocations: 0 / 368.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001514/0.1704, allocations: 0 / 368.2 MB, free: 11.33 MB / 318.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.00879/0.1792, allocations: 4.298 MB / 372.5 MB, free: 6.961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1792, allocations: 8.031 kB / 372.5 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/0.1803, allocations: 444 kB / 372.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003511/0.1839, allocations: 2.219 MB / 375.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.184, allocations: 234.1 kB / 375.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004094/0.1844, allocations: 311.9 kB / 375.7 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1813/0.3657, allocations: 4.362 MB / 380.1 MB, free: 48.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001846/0.366, allocations: 7.406 kB / 380.1 MB, free: 48.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007882/0.3668, allocations: 129.9 kB / 380.2 MB, free: 48.49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001789/0.367, allocations: 130.1 kB / 380.3 MB, free: 48.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00815/0.3751, allocations: 3.773 MB / 384.1 MB, free: 47.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01957/0.3947, allocations: 13.55 MB / 397.6 MB, free: 39.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002868/0.3976, allocations: 2.896 MB / 400.5 MB, free: 37.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002125/0.3998, allocations: 1.683 MB / 402.2 MB, free: 36.33 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002492/0.4, allocations: 132.7 kB / 402.3 MB, free: 36.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.858e-05/0.4001, allocations: 58.03 kB / 402.4 MB, free: 36.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=164): time 3.286e-06/0.4001, allocations: 0.9688 kB / 402.4 MB, free: 36.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=180): time 0.01581/0.4159, allocations: 9.209 MB / 411.6 MB, free: 28.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.416, allocations: 73.41 kB / 411.7 MB, free: 28.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003067/0.4191, allocations: 2.361 MB / 414 MB, free: 26.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001961/0.4193, allocations: 54.25 kB / 414.1 MB, free: 26.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007245/0.42, allocations: 1.469 MB / 415.6 MB, free: 24.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000366/0.4204, allocations: 0.5999 MB / 416.2 MB, free: 24.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000524/0.4209, allocations: 367.3 kB / 416.5 MB, free: 23.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.222e-05/0.421, allocations: 305.1 kB / 416.8 MB, free: 23.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.4224, allocations: 1.125 MB / 417.9 MB, free: 22.53 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.4239, allocations: 1.571 MB / 419.5 MB, free: 20.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002809/0.4267, allocations: 2.783 MB / 422.3 MB, free: 17.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.4267, allocations: 4 kB / 422.3 MB, free: 17.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.004889/0.4316, allocations: 3.599 MB / 425.9 MB, free: 14.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.746e-05/0.4317, allocations: 12 kB / 425.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/0.4317, allocations: 12 kB / 425.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.4335, allocations: 0.8071 MB / 426.7 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/0.435, allocations: 462.9 kB / 427.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008077/0.4431, allocations: 11.17 MB / 438.4 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002251/0.4454, allocations: 127.8 kB / 438.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001598/0.4455, allocations: 79.98 kB / 438.6 MB, free: 0.832 MB / 318.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.001798/0.4473, allocations: 1.084 MB / 439.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005651/0.4479, allocations: 249 kB / 439.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005279/0.4532, allocations: 3.301 MB / 443.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.4532, allocations: 23.28 kB / 443.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.4533, allocations: 8 kB / 443.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.4533, allocations: 11.95 kB / 443.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.4645, allocations: 6.89 MB / 450.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.4645, allocations: 0 / 450.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.4657, allocations: 295.8 kB / 450.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00216/0.4679, allocations: 0.9321 MB / 451.3 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000121/0.468, allocations: 39.98 kB / 451.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/0.4806, allocations: 14.6 MB / 466 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.4806, allocations: 3.938 kB / 466 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007614/0.4883, allocations: 4.859 MB / 470.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/0.4898, allocations: 0.5682 MB / 471.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003647/0.4902, allocations: 36 kB / 471.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.4915, allocations: 127.8 kB / 471.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004311/0.4919, allocations: 152.7 kB / 471.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.492, allocations: 47.98 kB / 471.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002564/0.4946, allocations: 1.633 MB / 473.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4946, allocations: 0 / 473.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002393/0.497, allocations: 0.7096 MB / 474.1 MB, free: 12.06 MB / 366.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.0004256/0.4974, allocations: 206.9 kB / 474.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008886/0.5063, allocations: 4.859 MB / 479.2 MB, free: 6.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.5064, allocations: 4.125 kB / 479.2 MB, free: 6.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003601/0.51, allocations: 2.504 MB / 481.7 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/0.5134, allocations: 0.7171 MB / 482.4 MB, free: 3.574 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.5245, allocations: 6.833 MB / 489.2 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/0.5268, allocations: 2.521 MB / 491.8 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001979/0.5288, allocations: 0.5905 MB / 492.3 MB, free: 9.566 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004574/0.5293, allocations: 155.4 kB / 492.5 MB, free: 9.414 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5293, allocations: 0 / 492.5 MB, free: 9.414 MB / 382.1 MB Notification: Performance of Templates: time 0.3387/0.868, allocations: 42.17 MB / 0.5221 GB, free: 131.6 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/AsynchronousInductionMachines/AIMS_Start/AIMS_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches