Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008874/0.0008874, allocations: 94.47 kB / 16.3 MB, free: 5.996 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.0009092/0.0009094, allocations: 178.8 kB / 17.2 MB, free: 5.914 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.292/1.292, allocations: 223.2 MB / 241.1 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002311/0.0002311, allocations: 9.812 kB / 300.7 MB, free: 6.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09123, allocations: 50.41 MB / 351.2 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.008906/0.1002, allocations: 8.283 MB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004972/0.1052, allocations: 3.111 MB / 362.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.1064, allocations: 51.69 kB / 362.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.1079, allocations: 0.5753 MB / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002116/0.11, allocations: 0.7165 MB / 363.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007684/0.1108, allocations: 255.6 kB / 364.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002808/0.1136, allocations: 1.899 MB / 366 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001759/0.1154, allocations: 1.651 MB / 367.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.1165, allocations: 0.9146 MB / 368.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.1177, allocations: 1.198 MB / 369.8 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002207/0.118, allocations: 144 kB / 369.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004785/0.1185, allocations: 227.8 kB / 370.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.197/0.3155, allocations: 0.7179 MB / 370.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001898/0.3174, allocations: 0.549 MB / 371.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005454/0.3229, allocations: 3.7 MB / 375.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.3229, allocations: 5.438 kB / 375.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3229, allocations: 0 / 375.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001736/0.3231, allocations: 0 / 375.1 MB, free: 11.52 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007074/0.3302, allocations: 2.785 MB / 377.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3302, allocations: 9.625 kB / 377.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009307/0.3312, allocations: 325.8 kB / 378.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003051/0.3342, allocations: 1.657 MB / 379.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.3344, allocations: 193.3 kB / 380.1 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003537/0.3348, allocations: 227.6 kB / 380.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005772/0.3406, allocations: 3.114 MB / 383.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-05/0.3407, allocations: 10.69 kB / 383.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/0.3409, allocations: 94.17 kB / 383.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001652/0.3411, allocations: 107.9 kB / 383.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005141/0.3463, allocations: 2.706 MB / 386.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01561/0.3619, allocations: 9.741 MB / 396.1 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002266/0.3642, allocations: 2.182 MB / 398.3 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002617/0.3645, allocations: 205.2 kB / 398.5 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.3645, allocations: 47.06 kB / 398.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=116): time 3.126e-06/0.3646, allocations: 0 / 398.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=131): time 0.01405/0.3786, allocations: 6.928 MB / 405.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.3787, allocations: 64.72 kB / 405.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/0.3813, allocations: 1.692 MB / 407.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.3814, allocations: 45.7 kB / 407.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009134/0.3824, allocations: 1.153 MB / 408.4 MB, free: 9.629 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004178/0.3828, allocations: 456.6 kB / 408.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.849e-05/0.3829, allocations: 36 kB / 408.9 MB, free: 9.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.3831, allocations: 369.8 kB / 409.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.3845, allocations: 0.8042 MB / 410 MB, free: 7.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.3861, allocations: 1.216 MB / 411.3 MB, free: 6.609 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.3875, allocations: 0.9705 MB / 412.2 MB, free: 5.648 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.3876, allocations: 4 kB / 412.2 MB, free: 5.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004396/0.392, allocations: 2.675 MB / 414.9 MB, free: 3.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.392, allocations: 8 kB / 414.9 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.169e-05/0.392, allocations: 13.31 kB / 414.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009308/0.393, allocations: 398.8 kB / 415.3 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.3944, allocations: 370.3 kB / 415.7 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006602/0.401, allocations: 6.355 MB / 422 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4028, allocations: 115.8 kB / 422.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4029, allocations: 67.98 kB / 422.2 MB, free: 11.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (177): * Single equations (assignments): 173 * 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: 3 * 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: 3 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001853/0.4048, allocations: 0.7935 MB / 423 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004007/0.4052, allocations: 181.8 kB / 423.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004308/0.4095, allocations: 2.389 MB / 425.6 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.4095, allocations: 15.98 kB / 425.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.4095, allocations: 11.94 kB / 425.6 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.4096, allocations: 6.938 kB / 425.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008946/0.4185, allocations: 5.083 MB / 430.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.4185, allocations: 4 kB / 430.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.4196, allocations: 247.6 kB / 430.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.4207, allocations: 431.6 kB / 431.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.313e-05/0.4208, allocations: 31.98 kB / 431.4 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007179/0.428, allocations: 7.887 MB / 439.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.428, allocations: 4 kB / 439.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005512/0.4335, allocations: 3.755 MB / 443 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.4346, allocations: 438.8 kB / 443.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.4349, allocations: 27.98 kB / 443.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009427/0.4359, allocations: 95.91 kB / 443.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003095/0.4362, allocations: 124.2 kB / 443.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.648e-05/0.4363, allocations: 36 kB / 443.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001795/0.4381, allocations: 1.151 MB / 444.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4381, allocations: 4 kB / 444.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001821/0.4399, allocations: 0.5001 MB / 445.4 MB, free: 3.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 1,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003171/0.4402, allocations: 165.3 kB / 445.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003707/0.4439, allocations: 2.471 MB / 448 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.444, allocations: 0 / 448 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002332/0.4463, allocations: 1.613 MB / 449.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/0.4483, allocations: 432.5 kB / 450.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007589/0.4559, allocations: 5.937 MB / 456 MB, free: 8.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/0.4575, allocations: 2.048 MB / 458 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001225/0.4587, allocations: 451.2 kB / 458.5 MB, free: 6.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003508/0.4591, allocations: 123.4 kB / 458.6 MB, free: 6.094 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4591, allocations: 0 / 458.6 MB, free: 6.094 MB / 366.1 MB Notification: Performance of Templates: time 0.03821/0.4973, allocations: 25.13 MB / 483.7 MB, free: 13.28 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches