Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009495/0.0009494, allocations: 196.5 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.6 MB / 244.4 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008352/0.0008348, allocations: 106.9 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002142/0.0002143, allocations: 11.94 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2067, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.007626/0.2144, allocations: 10.48 MB / 418 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005406/0.2198, allocations: 3.6 MB / 421.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001315/0.2212, allocations: 63.69 kB / 421.6 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.2226, allocations: 0.6989 MB / 422.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001865/0.2245, allocations: 0.9324 MB / 423.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006606/0.2251, allocations: 307.5 kB / 423.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.2279, allocations: 4.362 MB / 427.9 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001913/0.2298, allocations: 2.277 MB / 430.2 MB, free: 5.031 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.2314, allocations: 1.416 MB / 431.6 MB, free: 3.609 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001632/0.2331, allocations: 1.911 MB / 433.5 MB, free: 1.691 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003087/0.2334, allocations: 212 kB / 433.7 MB, free: 1.484 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006401/0.234, allocations: 287.9 kB / 434 MB, free: 1.203 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006204/0.2347, allocations: 1.047 MB / 435.1 MB, free: 156 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007024/0.2354, allocations: 0.7498 MB / 435.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004364/0.2398, allocations: 5.283 MB / 441.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2398, allocations: 0 / 441.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.2398, allocations: 0 / 441.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001404/0.2399, allocations: 0 / 441.1 MB, free: 10.1 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.007896/0.2478, allocations: 3.702 MB / 444.8 MB, free: 6.328 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.2479, allocations: 12.03 kB / 444.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001461/0.2494, allocations: 467.1 kB / 445.3 MB, free: 5.855 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00384/0.2532, allocations: 2.266 MB / 447.5 MB, free: 3.539 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.2534, allocations: 226.2 kB / 447.8 MB, free: 3.316 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004716/0.2539, allocations: 311.9 kB / 448.1 MB, free: 3.012 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007415/0.2613, allocations: 4.354 MB / 452.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.207e-05/0.2614, allocations: 15.89 kB / 452.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002974/0.2617, allocations: 124 kB / 452.6 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.2618, allocations: 126 kB / 452.7 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006487/0.2683, allocations: 3.775 MB / 456.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0212/0.2896, allocations: 13.59 MB / 470.1 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003328/0.2929, allocations: 2.903 MB / 473 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002709/0.2957, allocations: 1.7 MB / 474.7 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002794/0.296, allocations: 126.4 kB / 474.8 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.296, allocations: 59.86 kB / 474.8 MB, free: 7.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=164): time 3.727e-06/0.296, allocations: 0 / 474.8 MB, free: 7.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=180): time 0.01894/0.315, allocations: 9.041 MB / 483.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.3151, allocations: 77.34 kB / 484 MB, free: 14.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003901/0.319, allocations: 2.338 MB / 486.3 MB, free: 11.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000312/0.3194, allocations: 61.69 kB / 486.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.3205, allocations: 1.478 MB / 487.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006212/0.3212, allocations: 0.6123 MB / 488.4 MB, free: 9.719 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.3213, allocations: 40 kB / 488.5 MB, free: 9.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.3215, allocations: 381.9 kB / 488.9 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001819/0.3233, allocations: 1.124 MB / 490 MB, free: 8.176 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002028/0.3254, allocations: 1.575 MB / 491.6 MB, free: 6.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001995/0.3274, allocations: 1.341 MB / 492.9 MB, free: 5.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.3274, allocations: 4 kB / 492.9 MB, free: 5.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006056/0.3334, allocations: 3.592 MB / 496.5 MB, free: 1.461 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.3335, allocations: 16.45 kB / 496.5 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/0.3335, allocations: 12 kB / 496.5 MB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002038/0.3356, allocations: 0.8127 MB / 497.3 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/0.3373, allocations: 459.3 kB / 497.8 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009711/0.347, allocations: 10.28 MB / 0.4961 GB, free: 5.207 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002423/0.3495, allocations: 127.9 kB / 0.4963 GB, free: 5.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.3496, allocations: 72 kB / 0.4963 GB, free: 5.012 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 (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 initialization (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002279/0.3519, allocations: 1.096 MB / 0.4974 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006062/0.3525, allocations: 245 kB / 0.4976 GB, free: 3.668 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005544/0.3581, allocations: 3.313 MB / 0.5009 GB, free: 324 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.3581, allocations: 16 kB / 0.5009 GB, free: 308 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.3582, allocations: 16 kB / 0.5009 GB, free: 292 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.3582, allocations: 15.95 kB / 0.5009 GB, free: 276 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3204/0.6786, allocations: 6.879 MB / 0.5076 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.6787, allocations: 2.156 kB / 0.5076 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/0.6802, allocations: 302.5 kB / 0.5079 GB, free: 87.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00226/0.6824, allocations: 0.9149 MB / 0.5088 GB, free: 87.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001712/0.6826, allocations: 38.31 kB / 0.5089 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/0.6939, allocations: 13.46 MB / 0.522 GB, free: 76.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.6939, allocations: 14.8 kB / 0.522 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006583/0.7005, allocations: 4.865 MB / 0.5268 GB, free: 73.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/0.7018, allocations: 0.5741 MB / 0.5273 GB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002712/0.7021, allocations: 43.94 kB / 0.5274 GB, free: 72.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.7033, allocations: 130.7 kB / 0.5275 GB, free: 72.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.7036, allocations: 154.3 kB / 0.5276 GB, free: 72.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.526e-05/0.7037, allocations: 51.98 kB / 0.5277 GB, free: 72.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002056/0.7058, allocations: 1.613 MB / 0.5293 GB, free: 70.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7058, allocations: 0 / 0.5293 GB, free: 70.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001876/0.7077, allocations: 0.7069 MB / 0.53 GB, free: 70.18 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 (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003192/0.708, allocations: 173.2 kB / 0.5301 GB, free: 70 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004106/0.7121, allocations: 3.58 MB / 0.5336 GB, free: 66.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.7121, allocations: 1.688 kB / 0.5336 GB, free: 66.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002709/0.7148, allocations: 2.517 MB / 0.5361 GB, free: 63.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.7177, allocations: 0.6945 MB / 0.5368 GB, free: 63.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009505/0.7272, allocations: 7.971 MB / 0.5445 GB, free: 55.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001714/0.7289, allocations: 2.478 MB / 0.547 GB, free: 52.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00072/0.7297, allocations: 167.4 kB / 0.5471 GB, free: 52.38 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7297, allocations: 4 kB / 0.5471 GB, free: 52.38 MB / 378.7 MB Notification: Performance of Templates: time 0.3064/1.036, allocations: 167.3 MB / 0.7105 GB, free: 140 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches