Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [: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.0009789/0.000979, allocations: 182.9 kB / 8.134 MB, free: 2.215 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.177/1.177, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0008423/0.0008424, allocations: 95.5 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.082e-06/6.092e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1842/0.1842, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.3104, allocations: 116 MB / 0.4911 GB, free: 2.797 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.3107, allocations: 99.88 kB / 0.4912 GB, free: 2.699 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.316/0.6268, allocations: 74.05 MB / 0.5635 GB, free: 35.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002741/0.6271, allocations: 87.88 kB / 0.5636 GB, free: 35.44 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.007883/0.635, allocations: 3.152 MB / 0.5667 GB, free: 32.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.635, allocations: 12.03 kB / 0.5667 GB, free: 32.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003107/0.6381, allocations: 0.5968 MB / 0.5673 GB, free: 31.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006721/0.6449, allocations: 3.107 MB / 0.5703 GB, free: 28.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.645, allocations: 108 kB / 0.5704 GB, free: 28.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004809/0.6455, allocations: 183.9 kB / 0.5706 GB, free: 28.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004687/0.6502, allocations: 2.914 MB / 0.5735 GB, free: 25.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004969/0.6552, allocations: 3.495 MB / 0.5769 GB, free: 21.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.496e-05/0.6553, allocations: 4 kB / 0.5769 GB, free: 21.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002422/0.6555, allocations: 4 kB / 0.5769 GB, free: 21.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.604e-05/0.6556, allocations: 146.2 kB / 0.577 GB, free: 21.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01557/0.6712, allocations: 12.85 MB / 0.5896 GB, free: 8.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.6723, allocations: 0.9077 MB / 0.5905 GB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/0.6735, allocations: 1.007 MB / 0.5914 GB, free: 6.422 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003492/0.677, allocations: 2.698 MB / 0.5941 GB, free: 3.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.6771, allocations: 43.56 kB / 0.5941 GB, free: 3.617 MB / 378.7 MB Notification: Performance of pre-optimization done (n=123): time 3.066e-06/0.6771, allocations: 0 / 0.5941 GB, free: 3.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.00987/0.6869, allocations: 5.362 MB / 0.5994 GB, free: 14.19 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.687, allocations: 68.72 kB / 0.5994 GB, free: 14.11 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.6889, allocations: 1.387 MB / 0.6008 GB, free: 12.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.258e-05/0.689, allocations: 25.7 kB / 0.6008 GB, free: 12.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006794/0.6897, allocations: 1.23 MB / 0.602 GB, free: 11.44 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003714/0.6901, allocations: 0.5158 MB / 0.6025 GB, free: 10.92 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.265e-05/0.6902, allocations: 0 / 0.6025 GB, free: 10.92 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.6904, allocations: 381.9 kB / 0.6029 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.6915, allocations: 0.7693 MB / 0.6036 GB, free: 9.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.6931, allocations: 1.354 MB / 0.6049 GB, free: 8.152 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.6947, allocations: 1.049 MB / 0.606 GB, free: 7.105 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.6948, allocations: 8 kB / 0.606 GB, free: 7.098 MB / 394.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.003774/0.6985, allocations: 2.385 MB / 0.6083 GB, free: 4.691 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.6986, allocations: 4 kB / 0.6083 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.243e-05/0.6986, allocations: 20.62 kB / 0.6083 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003805/0.699, allocations: 118.5 kB / 0.6084 GB, free: 4.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002006/0.701, allocations: 495.2 kB / 0.6089 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009067/0.7019, allocations: 1.263 MB / 0.6101 GB, free: 2.684 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.7034, allocations: 64 kB / 0.6102 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001477/0.7036, allocations: 87.98 kB / 0.6103 GB, free: 2.535 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 244 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002675/0.7038, allocations: 164.2 kB / 0.6104 GB, free: 2.367 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000263/0.7041, allocations: 193.7 kB / 0.6106 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003457/0.7076, allocations: 1.99 MB / 0.6126 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.7076, allocations: 16 kB / 0.6126 GB, free: 156 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.7076, allocations: 7.906 kB / 0.6126 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.7076, allocations: 7.969 kB / 0.6126 GB, free: 140 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008035/0.7157, allocations: 4.876 MB / 0.6174 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.7157, allocations: 0 / 0.6174 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001595/0.7173, allocations: 323.8 kB / 0.6177 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003118/0.7177, allocations: 106.4 kB / 0.6178 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.963e-05/0.7178, allocations: 4 kB / 0.6178 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009738/0.7187, allocations: 1.221 MB / 0.619 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.7188, allocations: 4 kB / 0.619 GB, free: 9.418 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00506/0.7238, allocations: 3.347 MB / 0.6222 GB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.7251, allocations: 470.4 kB / 0.6227 GB, free: 5.496 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000527/0.7256, allocations: 4 kB / 0.6227 GB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.7269, allocations: 48 kB / 0.6227 GB, free: 5.445 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.727, allocations: 77.19 kB / 0.6228 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.7272, allocations: 43.98 kB / 0.6229 GB, free: 5.328 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001803/0.729, allocations: 1.027 MB / 0.6239 GB, free: 4.309 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00187/0.7308, allocations: 0.5155 MB / 0.6244 GB, free: 3.793 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 153 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006254/0.7315, allocations: 445.8 kB / 0.6248 GB, free: 3.379 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003179/0.7347, allocations: 2.214 MB / 0.6269 GB, free: 1.113 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.7347, allocations: 0 / 0.6269 GB, free: 1.113 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.7362, allocations: 1.214 MB / 0.6281 GB, free: 15.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002111/0.7383, allocations: 387.3 kB / 0.6285 GB, free: 15.47 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009082/0.7474, allocations: 4.463 MB / 0.6329 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002683/0.7501, allocations: 2.474 MB / 0.6353 GB, free: 8.43 MB / 426.7 MB Notification: Performance of SimCode: time 9.22e-07/0.7502, allocations: 4 kB / 0.6353 GB, free: 8.426 MB / 426.7 MB Notification: Performance of Templates: time 0.1936/0.9437, allocations: 26.09 MB / 0.6608 GB, free: 137.5 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches