Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001052/0.001052, allocations: 199.2 kB / 8.542 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009069/0.0009069, allocations: 85.86 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.057e-06/9.077e-06, allocations: 4 kB / 343.1 MB, free: 8.758 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08601/0.08603, allocations: 51.48 MB / 394.6 MB, free: 5.238 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2539/0.34, allocations: 107.7 MB / 0.4906 GB, free: 1.812 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.3403, allocations: 86.25 kB / 0.4907 GB, free: 1.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1432/0.4835, allocations: 57.46 MB / 0.5468 GB, free: 13.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003411/0.4838, allocations: 79.88 kB / 0.5468 GB, free: 13.23 MB / 426.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.007053/0.4909, allocations: 2.895 MB / 0.5497 GB, free: 10.28 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.491, allocations: 12.03 kB / 0.5497 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001597/0.4926, allocations: 415.5 kB / 0.5501 GB, free: 9.859 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004503/0.4971, allocations: 2.059 MB / 0.5521 GB, free: 7.746 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.4972, allocations: 92 kB / 0.5522 GB, free: 7.656 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006804/0.4979, allocations: 167.9 kB / 0.5523 GB, free: 7.492 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006015/0.504, allocations: 2.893 MB / 0.5552 GB, free: 4.594 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006167/0.5101, allocations: 3.389 MB / 0.5585 GB, free: 1.043 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.099e-05/0.5103, allocations: 11.89 kB / 0.5585 GB, free: 1.031 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002415/0.5105, allocations: 4 kB / 0.5585 GB, free: 1.027 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001041/0.5106, allocations: 121.5 kB / 0.5586 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01866/0.5293, allocations: 11.29 MB / 0.5696 GB, free: 5.316 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.5306, allocations: 0.9946 MB / 0.5706 GB, free: 4.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/0.5324, allocations: 1.254 MB / 0.5718 GB, free: 3.074 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003129/0.5327, allocations: 134.4 kB / 0.572 GB, free: 2.922 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.5327, allocations: 51.88 kB / 0.572 GB, free: 2.863 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 2.775e-06/0.5327, allocations: 4 kB / 0.572 GB, free: 2.859 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.1415/0.6743, allocations: 5.738 MB / 0.5776 GB, free: 136 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.6743, allocations: 74.19 kB / 0.5777 GB, free: 135.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/0.6763, allocations: 1.525 MB / 0.5792 GB, free: 135.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.6764, allocations: 33.27 kB / 0.5792 GB, free: 135.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003921/0.6768, allocations: 1.078 MB / 0.5803 GB, free: 135.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.677, allocations: 0.5184 MB / 0.5808 GB, free: 134.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.604e-05/0.6771, allocations: 0 / 0.5808 GB, free: 134.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.608e-05/0.6772, allocations: 379 kB / 0.5811 GB, free: 134.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.6783, allocations: 0.8988 MB / 0.582 GB, free: 134.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.6794, allocations: 1.335 MB / 0.5833 GB, free: 134.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.6807, allocations: 1.129 MB / 0.5844 GB, free: 134.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.6807, allocations: 3.844 kB / 0.5844 GB, free: 134.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004697/0.6854, allocations: 3.276 MB / 0.5876 GB, free: 133.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.6855, allocations: 3.938 kB / 0.5876 GB, free: 133.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.6855, allocations: 15.53 kB / 0.5876 GB, free: 133.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00255/0.688, allocations: 1.061 MB / 0.5887 GB, free: 133.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.6892, allocations: 320.4 kB / 0.589 GB, free: 133.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01354/0.7028, allocations: 18.29 MB / 0.6068 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.7044, allocations: 47.61 kB / 0.6069 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/0.7046, allocations: 75.14 kB / 0.6069 GB, free: 121.5 MB / 442.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.0003131/0.7049, allocations: 157.7 kB / 0.6071 GB, free: 121.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003/0.7053, allocations: 206.2 kB / 0.6073 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004107/0.7094, allocations: 2.746 MB / 0.61 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.7094, allocations: 15.06 kB / 0.61 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/0.7094, allocations: 8.125 kB / 0.61 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/0.7094, allocations: 10.72 kB / 0.61 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008456/0.7179, allocations: 5.413 MB / 0.6153 GB, free: 120.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.7179, allocations: 7.688 kB / 0.6153 GB, free: 120.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007609/0.7187, allocations: 176.5 kB / 0.6155 GB, free: 120.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/0.7211, allocations: 0.9519 MB / 0.6164 GB, free: 120.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.7212, allocations: 14.16 kB / 0.6164 GB, free: 120.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/0.7335, allocations: 16.77 MB / 0.6328 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.7335, allocations: 6.094 kB / 0.6328 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005408/0.7389, allocations: 4.199 MB / 0.6369 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.74, allocations: 474 kB / 0.6373 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003222/0.7403, allocations: 14.66 kB / 0.6374 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.7414, allocations: 79.39 kB / 0.6374 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.7416, allocations: 97.89 kB / 0.6375 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.7417, allocations: 46.67 kB / 0.6376 GB, free: 105.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001388/0.7431, allocations: 1.131 MB / 0.6387 GB, free: 105.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0022/0.7453, allocations: 0.6178 MB / 0.6393 GB, free: 105.1 MB / 442.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.0004958/0.7458, allocations: 376.8 kB / 0.6396 GB, free: 105 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003883/0.7497, allocations: 3.331 MB / 0.6429 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.7497, allocations: 6.953 kB / 0.6429 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002317/0.752, allocations: 2.094 MB / 0.6449 GB, free: 102 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/0.7544, allocations: 0.5073 MB / 0.6454 GB, free: 101.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00827/0.7627, allocations: 4.604 MB / 0.6499 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002158/0.7649, allocations: 2.444 MB / 0.6523 GB, free: 99.2 MB / 442.7 MB Notification: Performance of SimCode: time 4.91e-07/0.7649, allocations: 0 / 0.6523 GB, free: 99.2 MB / 442.7 MB Notification: Performance of Templates: time 0.05401/0.8189, allocations: 34.13 MB / 0.6857 GB, free: 93.69 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches