Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009678/0.0009679, allocations: 185.2 kB / 8.135 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.158/1.158, allocations: 221.4 MB / 229.9 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009876/0.0009878, allocations: 106.1 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.42e-06/5.45e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1661, allocations: 50.39 MB / 386.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.2735, allocations: 106.9 MB / 493.8 MB, free: 11.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.2738, allocations: 91.89 kB / 493.9 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2528/0.5266, allocations: 57.38 MB / 0.5384 GB, free: 71.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001583/0.5268, allocations: 79.94 kB / 0.5384 GB, free: 71.33 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.004244/0.531, allocations: 2.884 MB / 0.5413 GB, free: 68.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.531, allocations: 8.031 kB / 0.5413 GB, free: 68.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009071/0.532, allocations: 411.5 kB / 0.5417 GB, free: 67.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003063/0.535, allocations: 2.058 MB / 0.5437 GB, free: 65.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.639e-05/0.5351, allocations: 92 kB / 0.5438 GB, free: 65.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003207/0.5354, allocations: 175.9 kB / 0.5439 GB, free: 65.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003862/0.5393, allocations: 2.893 MB / 0.5468 GB, free: 62.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004309/0.5436, allocations: 3.389 MB / 0.5501 GB, free: 59.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.721e-05/0.5437, allocations: 8 kB / 0.5501 GB, free: 59.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002303/0.5439, allocations: 7.906 kB / 0.5501 GB, free: 59.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.44e-05/0.544, allocations: 117.5 kB / 0.5502 GB, free: 59.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0136/0.5576, allocations: 11.29 MB / 0.5612 GB, free: 47.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.5587, allocations: 0.9908 MB / 0.5622 GB, free: 46.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.5601, allocations: 1.243 MB / 0.5634 GB, free: 45.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002474/0.5604, allocations: 138.4 kB / 0.5635 GB, free: 45.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.5604, allocations: 55.8 kB / 0.5636 GB, free: 45.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.096e-06/0.5604, allocations: 0 / 0.5636 GB, free: 45.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.008804/0.5692, allocations: 5.762 MB / 0.5692 GB, free: 39.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.095e-05/0.5693, allocations: 68.72 kB / 0.5693 GB, free: 39.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/0.5709, allocations: 1.527 MB / 0.5708 GB, free: 37.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.575e-05/0.571, allocations: 25.7 kB / 0.5708 GB, free: 37.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.5713, allocations: 1.08 MB / 0.5718 GB, free: 36.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.5716, allocations: 0.5157 MB / 0.5723 GB, free: 36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.341e-05/0.5717, allocations: 0 / 0.5723 GB, free: 36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.384e-05/0.5718, allocations: 381.9 kB / 0.5727 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.5729, allocations: 0.898 MB / 0.5736 GB, free: 34.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.574, allocations: 1.336 MB / 0.5749 GB, free: 33.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.5753, allocations: 1.13 MB / 0.576 GB, free: 32.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.5753, allocations: 8 kB / 0.576 GB, free: 32.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004681/0.58, allocations: 3.268 MB / 0.5792 GB, free: 28.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.58, allocations: 7.938 kB / 0.5792 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.58, allocations: 12 kB / 0.5792 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002584/0.5826, allocations: 1.067 MB / 0.5803 GB, free: 27.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.5838, allocations: 319.5 kB / 0.5806 GB, free: 27.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/0.5971, allocations: 18.29 MB / 0.5984 GB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.5985, allocations: 43.86 kB / 0.5985 GB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.5986, allocations: 76 kB / 0.5985 GB, free: 7.766 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * 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): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002832/0.5989, allocations: 152.4 kB / 0.5987 GB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/0.5992, allocations: 205.5 kB / 0.5989 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004052/0.6032, allocations: 2.748 MB / 0.6016 GB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.6033, allocations: 16 kB / 0.6016 GB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.6033, allocations: 15.94 kB / 0.6016 GB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.6033, allocations: 7.969 kB / 0.6016 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007843/0.6112, allocations: 5.416 MB / 0.6069 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.6112, allocations: 0 / 0.6069 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008016/0.612, allocations: 179.7 kB / 0.6071 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002543/0.6145, allocations: 0.9524 MB / 0.608 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.743e-05/0.6147, allocations: 23.83 kB / 0.608 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01563/0.6303, allocations: 16.76 MB / 0.6244 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.6303, allocations: 3.984 kB / 0.6244 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00615/0.6365, allocations: 4.189 MB / 0.6285 GB, free: 7.746 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.6375, allocations: 478.5 kB / 0.6289 GB, free: 7.258 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003183/0.6378, allocations: 7.984 kB / 0.6289 GB, free: 7.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.6389, allocations: 83.77 kB / 0.629 GB, free: 7.168 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.6391, allocations: 93.17 kB / 0.6291 GB, free: 7.078 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.6392, allocations: 40 kB / 0.6291 GB, free: 7.039 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001573/0.6408, allocations: 1.134 MB / 0.6302 GB, free: 5.914 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002253/0.6431, allocations: 0.6172 MB / 0.6309 GB, free: 5.297 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 98 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005587/0.6437, allocations: 395.6 kB / 0.6312 GB, free: 4.906 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004591/0.6483, allocations: 3.346 MB / 0.6345 GB, free: 1.461 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.6483, allocations: 0 / 0.6345 GB, free: 1.461 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002694/0.651, allocations: 2.098 MB / 0.6365 GB, free: 15.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002413/0.6534, allocations: 0.5013 MB / 0.637 GB, free: 14.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008286/0.6617, allocations: 4.598 MB / 0.6415 GB, free: 10.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002341/0.6641, allocations: 2.439 MB / 0.6439 GB, free: 7.617 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.6641, allocations: 4 kB / 0.6439 GB, free: 7.613 MB / 426.7 MB Notification: Performance of Templates: time 0.1604/0.8244, allocations: 34.06 MB / 0.6772 GB, free: 137.7 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches