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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 102 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009334/0.0009339, allocations: 39.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2801, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01045/0.2906, allocations: 11.7 MB / 411.2 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007069/0.2977, allocations: 3.703 MB / 414.9 MB, free: 17.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003107/0.3009, allocations: 71.69 kB / 415 MB, free: 17.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00277/0.3037, allocations: 0.7575 MB / 415.7 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00394/0.3077, allocations: 0.9948 MB / 416.7 MB, free: 16.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.3089, allocations: 435.6 kB / 417.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004616/0.3135, allocations: 4.936 MB / 422.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003012/0.3166, allocations: 2.742 MB / 424.8 MB, free: 7.906 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002659/0.3193, allocations: 1.627 MB / 426.4 MB, free: 6.273 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003353/0.3226, allocations: 2.234 MB / 428.7 MB, free: 4.031 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007804/0.3234, allocations: 300 kB / 429 MB, free: 3.738 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00144/0.3249, allocations: 399.8 kB / 429.4 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001034/0.3259, allocations: 1.188 MB / 430.5 MB, free: 2.156 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002602/0.3285, allocations: 1.983 MB / 432.5 MB, free: 168 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006821/0.3354, allocations: 6.301 MB / 438.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.3354, allocations: 0 / 438.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3355, allocations: 0 / 438.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002433/0.3357, allocations: 0 / 438.8 MB, free: 9.844 MB / 314.7 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.01253/0.3482, allocations: 4.302 MB / 443.1 MB, free: 5.473 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.3483, allocations: 12.02 kB / 443.1 MB, free: 5.461 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001331/0.3497, allocations: 440 kB / 443.6 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00472/0.3544, allocations: 2.324 MB / 445.9 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.3546, allocations: 246 kB / 446.1 MB, free: 2.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005067/0.3551, allocations: 307.9 kB / 446.4 MB, free: 2.109 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00782/0.363, allocations: 4.369 MB / 450.8 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.991e-05/0.3631, allocations: 11.84 kB / 450.8 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002767/0.3633, allocations: 120 kB / 450.9 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001178/0.3635, allocations: 130 kB / 451.1 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006493/0.37, allocations: 3.783 MB / 454.8 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02574/0.3957, allocations: 13.52 MB / 468.4 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004071/0.3999, allocations: 2.876 MB / 471.2 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002925/0.4028, allocations: 1.696 MB / 472.9 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003411/0.4032, allocations: 126.4 kB / 473.1 MB, free: 6.848 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.884e-05/0.4033, allocations: 51.81 kB / 473.1 MB, free: 6.789 MB / 346.7 MB Notification: Performance of pre-optimization done (n=164): time 4.829e-06/0.4033, allocations: 0 / 473.1 MB, free: 6.789 MB / 346.7 MB Notification: Performance of matching and sorting (n=180): time 0.01983/0.4231, allocations: 8.995 MB / 482.1 MB, free: 13.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.4232, allocations: 69.41 kB / 482.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004553/0.4278, allocations: 2.353 MB / 484.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003666/0.4282, allocations: 53.7 kB / 484.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.4294, allocations: 1.47 MB / 486 MB, free: 9.594 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006353/0.43, allocations: 0.6007 MB / 486.6 MB, free: 8.984 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006379/0.4306, allocations: 367.2 kB / 487 MB, free: 8.617 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4308, allocations: 313 kB / 487.3 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001825/0.4326, allocations: 1.124 MB / 488.4 MB, free: 7.184 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/0.4348, allocations: 1.571 MB / 490 MB, free: 5.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003714/0.4385, allocations: 2.784 MB / 492.8 MB, free: 2.488 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.4386, allocations: 0 / 492.8 MB, free: 2.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006014/0.4446, allocations: 3.592 MB / 496.4 MB, free: 14.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.4446, allocations: 12 kB / 496.4 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/0.4447, allocations: 19.88 kB / 496.4 MB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001969/0.4466, allocations: 0.8071 MB / 497.2 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.4483, allocations: 451.3 kB / 497.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/0.4585, allocations: 10.29 MB / 0.496 GB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/0.4606, allocations: 119.9 kB / 0.4962 GB, free: 2.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002851/0.4609, allocations: 79.98 kB / 0.4962 GB, free: 2.406 MB / 378.7 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.002239/0.4631, allocations: 1.091 MB / 0.4973 GB, free: 1.305 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007068/0.4639, allocations: 245 kB / 0.4975 GB, free: 1.062 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2386/0.7025, allocations: 3.302 MB / 0.5008 GB, free: 94.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/0.7025, allocations: 15.69 kB / 0.5008 GB, free: 94.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.7025, allocations: 11.72 kB / 0.5008 GB, free: 94.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-05/0.7026, allocations: 8.719 kB / 0.5008 GB, free: 94.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/0.7159, allocations: 6.884 MB / 0.5075 GB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.7159, allocations: 7.875 kB / 0.5075 GB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/0.7172, allocations: 294.2 kB / 0.5078 GB, free: 91.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002421/0.7196, allocations: 0.9239 MB / 0.5087 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002189/0.7199, allocations: 42.73 kB / 0.5087 GB, free: 91.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01029/0.7302, allocations: 13.47 MB / 0.5219 GB, free: 79.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.7302, allocations: 11.88 kB / 0.5219 GB, free: 79.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04707/0.7773, allocations: 39.12 MB / 0.5601 GB, free: 40.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/0.7786, allocations: 0.5643 MB / 0.5607 GB, free: 39.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002893/0.7789, allocations: 43.98 kB / 0.5607 GB, free: 39.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.7801, allocations: 115.9 kB / 0.5608 GB, free: 39.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004105/0.7805, allocations: 161.6 kB / 0.561 GB, free: 39.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.7806, allocations: 49.86 kB / 0.561 GB, free: 39.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001961/0.7826, allocations: 1.625 MB / 0.5626 GB, free: 37.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7826, allocations: 0 / 0.5626 GB, free: 37.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002882/0.7855, allocations: 1.02 MB / 0.5636 GB, free: 36.45 MB / 378.7 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.0004029/0.7859, allocations: 214.7 kB / 0.5638 GB, free: 36.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004345/0.7903, allocations: 3.57 MB / 0.5673 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.7903, allocations: 4 kB / 0.5673 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002877/0.7932, allocations: 2.504 MB / 0.5697 GB, free: 29.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003898/0.7971, allocations: 0.6752 MB / 0.5704 GB, free: 29.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/0.8104, allocations: 10.57 MB / 0.5807 GB, free: 18.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00217/0.8126, allocations: 2.581 MB / 0.5833 GB, free: 15.97 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002001/0.8146, allocations: 0.6217 MB / 0.5839 GB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000536/0.8151, allocations: 159.4 kB / 0.584 GB, free: 15.19 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.8152, allocations: 0 / 0.584 GB, free: 15.19 MB / 378.7 MB Notification: Performance of Templates: time 0.09075/0.9059, allocations: 50.34 MB / 0.6332 GB, free: 13.26 MB / 426.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","../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