Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001751/0.001751, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.662/1.662, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 108.6 kB / 296.7 MB, free: 6.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 55.91 kB / 356.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2869, allocations: 50.43 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.009286/0.2962, allocations: 11.75 MB / 418.8 MB, free: 16.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005993/0.3023, allocations: 3.78 MB / 422.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.3041, allocations: 67.69 kB / 422.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.3058, allocations: 0.7624 MB / 423.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002327/0.3082, allocations: 0.9988 MB / 424.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007949/0.309, allocations: 439.6 kB / 424.8 MB, free: 9.953 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003604/0.3126, allocations: 4.935 MB / 429.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002821/0.3154, allocations: 2.734 MB / 432.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002561/0.318, allocations: 1.631 MB / 434.1 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002601/0.3206, allocations: 2.238 MB / 436.4 MB, free: 14.32 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005151/0.3212, allocations: 300 kB / 436.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009139/0.3221, allocations: 407.8 kB / 437.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.3232, allocations: 1.18 MB / 438.2 MB, free: 12.44 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00235/0.3255, allocations: 1.994 MB / 440.2 MB, free: 10.44 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005693/0.3312, allocations: 6.313 MB / 446.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3313, allocations: 0 / 446.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3313, allocations: 0 / 446.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001978/0.3315, allocations: 0 / 446.5 MB, free: 4.105 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.01038/0.3419, allocations: 4.302 MB / 450.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.3419, allocations: 8.031 kB / 450.9 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001416/0.3434, allocations: 472 kB / 451.3 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004665/0.348, allocations: 2.328 MB / 453.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.3483, allocations: 234.1 kB / 453.9 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004682/0.3487, allocations: 303.9 kB / 454.2 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007563/0.3563, allocations: 4.377 MB / 458.5 MB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.969e-05/0.3564, allocations: 7.938 kB / 458.6 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002912/0.3567, allocations: 124 kB / 458.7 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.3569, allocations: 134 kB / 458.8 MB, free: 7.621 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006223/0.3631, allocations: 3.775 MB / 462.6 MB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02177/0.3849, allocations: 13.53 MB / 476.1 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003317/0.3882, allocations: 2.904 MB / 479 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002668/0.3909, allocations: 1.68 MB / 480.7 MB, free: 1.207 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002599/0.3912, allocations: 126.4 kB / 480.8 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.3913, allocations: 51.88 kB / 480.9 MB, free: 1.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=164): time 5.089e-06/0.3913, allocations: 0 / 480.9 MB, free: 1.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=180): time 0.01787/0.4092, allocations: 8.99 MB / 489.9 MB, free: 7.832 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.4092, allocations: 69.41 kB / 489.9 MB, free: 7.754 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003473/0.4127, allocations: 2.358 MB / 492.3 MB, free: 5.367 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002215/0.413, allocations: 61.7 kB / 492.3 MB, free: 5.301 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009795/0.4139, allocations: 1.474 MB / 493.8 MB, free: 3.809 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004972/0.4145, allocations: 0.6007 MB / 494.4 MB, free: 3.199 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005759/0.415, allocations: 371.2 kB / 494.8 MB, free: 2.828 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.725e-05/0.4151, allocations: 305.1 kB / 495.1 MB, free: 2.527 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001673/0.4168, allocations: 1.128 MB / 496.2 MB, free: 1.398 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/0.4188, allocations: 1.571 MB / 497.8 MB, free: 15.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0036/0.4224, allocations: 2.784 MB / 0.4888 GB, free: 12.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.4225, allocations: 4 kB / 0.4888 GB, free: 12.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.005775/0.4282, allocations: 3.585 MB / 0.4923 GB, free: 9.074 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.4283, allocations: 12 kB / 0.4923 GB, free: 9.062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.887e-05/0.4283, allocations: 19.97 kB / 0.4924 GB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/0.4302, allocations: 0.8019 MB / 0.4931 GB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/0.4319, allocations: 459.3 kB / 0.4936 GB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2069/0.6388, allocations: 10.28 MB / 0.5036 GB, free: 87.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/0.641, allocations: 129 kB / 0.5037 GB, free: 87.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/0.6412, allocations: 76.41 kB / 0.5038 GB, free: 87.4 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.00175/0.643, allocations: 1.095 MB / 0.5049 GB, free: 86.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005395/0.6435, allocations: 250.5 kB / 0.5051 GB, free: 86.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004976/0.6485, allocations: 3.304 MB / 0.5084 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.6485, allocations: 17.34 kB / 0.5084 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.6485, allocations: 7.906 kB / 0.5084 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.6486, allocations: 8.594 kB / 0.5084 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/0.6588, allocations: 6.879 MB / 0.5151 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.6588, allocations: 8.469 kB / 0.5151 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.66, allocations: 294.9 kB / 0.5154 GB, free: 82.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002069/0.6621, allocations: 0.927 MB / 0.5163 GB, free: 82.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.6622, allocations: 43.73 kB / 0.5163 GB, free: 82.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009419/0.6716, allocations: 13.46 MB / 0.5295 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.6717, allocations: 4 kB / 0.5295 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04609/0.7178, allocations: 39.14 MB / 0.5677 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.7189, allocations: 0.5643 MB / 0.5683 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000279/0.7192, allocations: 39.98 kB / 0.5683 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.7204, allocations: 123.9 kB / 0.5684 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003726/0.7208, allocations: 145.8 kB / 0.5686 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.7209, allocations: 55.98 kB / 0.5686 GB, free: 28.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001865/0.7228, allocations: 1.633 MB / 0.5702 GB, free: 26.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7228, allocations: 4 kB / 0.5702 GB, free: 26.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002519/0.7253, allocations: 1.012 MB / 0.5712 GB, free: 25.73 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.0003559/0.7257, allocations: 210.9 kB / 0.5714 GB, free: 25.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004181/0.7299, allocations: 3.571 MB / 0.5749 GB, free: 21.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.7299, allocations: 4 kB / 0.5749 GB, free: 21.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002804/0.7327, allocations: 2.509 MB / 0.5773 GB, free: 19.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002945/0.7357, allocations: 0.6775 MB / 0.578 GB, free: 18.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.7476, allocations: 10.57 MB / 0.5883 GB, free: 7.852 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001774/0.7494, allocations: 2.589 MB / 0.5909 GB, free: 5.234 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001795/0.7512, allocations: 0.6178 MB / 0.5915 GB, free: 4.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005186/0.7518, allocations: 167.4 kB / 0.5916 GB, free: 4.445 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.7518, allocations: 4 kB / 0.5916 GB, free: 4.441 MB / 378.7 MB Notification: Performance of Templates: time 0.07782/0.8296, allocations: 50.43 MB / 0.6409 GB, free: 2.32 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches