Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001119/0.001119, allocations: 204 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001022/0.001022, allocations: 97.17 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.181e-06/6.201e-06, allocations: 0 / 343.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09725/0.09727, allocations: 51.47 MB / 394.6 MB, free: 5.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3385/0.4358, allocations: 117 MB / 0.4997 GB, free: 8.723 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.4361, allocations: 100.3 kB / 0.4998 GB, free: 8.672 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1958/0.6319, allocations: 76.64 MB / 0.5746 GB, free: 0.543 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003175/0.6323, allocations: 91.81 kB / 0.5747 GB, free: 464 kB / 442.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.2025/0.8348, allocations: 3.173 MB / 0.5778 GB, free: 56.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.8349, allocations: 9.906 kB / 0.5778 GB, free: 56.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003589/0.8385, allocations: 0.602 MB / 0.5784 GB, free: 56.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007332/0.8459, allocations: 3.129 MB / 0.5815 GB, free: 55.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.846, allocations: 110.7 kB / 0.5816 GB, free: 55.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004802/0.8465, allocations: 179.9 kB / 0.5817 GB, free: 55.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005259/0.8517, allocations: 2.914 MB / 0.5846 GB, free: 55.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005738/0.8575, allocations: 3.501 MB / 0.588 GB, free: 55.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.361e-05/0.8576, allocations: 2.688 kB / 0.588 GB, free: 55.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002499/0.8579, allocations: 10.84 kB / 0.588 GB, free: 55.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.858, allocations: 148.8 kB / 0.5882 GB, free: 55.31 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01777/0.8758, allocations: 13.04 MB / 0.6009 GB, free: 51.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.8769, allocations: 0.9239 MB / 0.6018 GB, free: 51.72 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.8783, allocations: 1.037 MB / 0.6028 GB, free: 51.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004158/0.8825, allocations: 2.916 MB / 0.6057 GB, free: 50.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.8826, allocations: 55.61 kB / 0.6057 GB, free: 50.84 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 3.808e-06/0.8826, allocations: 0 / 0.6057 GB, free: 50.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=162): time 0.01077/0.8933, allocations: 5.422 MB / 0.611 GB, free: 49.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.8934, allocations: 72.75 kB / 0.6111 GB, free: 49.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001979/0.8954, allocations: 1.39 MB / 0.6124 GB, free: 49.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.387e-05/0.8955, allocations: 25.7 kB / 0.6125 GB, free: 49.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005039/0.896, allocations: 1.228 MB / 0.6137 GB, free: 48.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00032/0.8964, allocations: 0.5214 MB / 0.6142 GB, free: 48.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.263e-05/0.8964, allocations: 0 / 0.6142 GB, free: 48.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.8966, allocations: 392.4 kB / 0.6145 GB, free: 48.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009735/0.8975, allocations: 0.7836 MB / 0.6153 GB, free: 48.19 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.8988, allocations: 1.37 MB / 0.6166 GB, free: 47.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.9002, allocations: 1.083 MB / 0.6177 GB, free: 47.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.9003, allocations: 3.938 kB / 0.6177 GB, free: 47.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.003598/0.9039, allocations: 2.438 MB / 0.6201 GB, free: 47.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.9039, allocations: 13.59 kB / 0.6201 GB, free: 47.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/0.9039, allocations: 17.94 kB / 0.6201 GB, free: 47.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003346/0.9043, allocations: 119.3 kB / 0.6202 GB, free: 47.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001888/0.9062, allocations: 498.4 kB / 0.6207 GB, free: 47.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007135/0.9069, allocations: 1.264 MB / 0.6219 GB, free: 46.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.9084, allocations: 59.84 kB / 0.622 GB, free: 46.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.9086, allocations: 85.17 kB / 0.6221 GB, free: 46.06 MB / 442.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 (250): * Single equations (assignments): 247 * 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.0002735/0.9089, allocations: 159 kB / 0.6222 GB, free: 45.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002575/0.9091, allocations: 195.6 kB / 0.6224 GB, free: 45.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003236/0.9124, allocations: 2.041 MB / 0.6244 GB, free: 45.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.9124, allocations: 17.25 kB / 0.6244 GB, free: 45.73 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.9124, allocations: 0 / 0.6244 GB, free: 45.73 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.9125, allocations: 10.41 kB / 0.6244 GB, free: 45.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007262/0.9197, allocations: 4.955 MB / 0.6293 GB, free: 45.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.9198, allocations: 6.938 kB / 0.6293 GB, free: 45.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.9212, allocations: 333.9 kB / 0.6296 GB, free: 45.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002717/0.9215, allocations: 91.73 kB / 0.6297 GB, free: 45.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.9216, allocations: 15.17 kB / 0.6297 GB, free: 45.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005899/0.9222, allocations: 1.219 MB / 0.6309 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.9223, allocations: 3.688 kB / 0.6309 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003884/0.9261, allocations: 3.421 MB / 0.6342 GB, free: 42.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009493/0.9271, allocations: 468 kB / 0.6347 GB, free: 42.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000293/0.9274, allocations: 0 / 0.6347 GB, free: 42.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009957/0.9284, allocations: 52.45 kB / 0.6347 GB, free: 42.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.9286, allocations: 87.47 kB / 0.6348 GB, free: 42.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.023e-05/0.9287, allocations: 40.05 kB / 0.6349 GB, free: 42.06 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001379/0.9301, allocations: 1.038 MB / 0.6359 GB, free: 41.63 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001622/0.9317, allocations: 0.5293 MB / 0.6364 GB, free: 41.61 MB / 442.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 (159): * Single equations (assignments): 156 * 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.0005815/0.9323, allocations: 471.4 kB / 0.6368 GB, free: 41.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002758/0.935, allocations: 2.262 MB / 0.639 GB, free: 40.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.9351, allocations: 1.625 kB / 0.639 GB, free: 40.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.9364, allocations: 1.238 MB / 0.6403 GB, free: 39.81 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/0.9386, allocations: 389.8 kB / 0.6406 GB, free: 39.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/0.9502, allocations: 4.504 MB / 0.645 GB, free: 37.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002984/0.9533, allocations: 2.484 MB / 0.6474 GB, free: 36.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.303e-06/0.9533, allocations: 1.062 kB / 0.6474 GB, free: 36.84 MB / 442.7 MB Notification: Performance of Templates: time 0.04871/1.002, allocations: 26.64 MB / 0.6735 GB, free: 35.16 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches