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_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") [: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.00105/0.00105, allocations: 186.1 kB / 8.136 MB, free: 2.199 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.187/1.187, allocations: 221.4 MB / 229.9 MB, free: 3.227 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.0009187/0.0009188, allocations: 93.94 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.224e-06/7.264e-06, allocations: 4 kB / 336.5 MB, free: 9.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1981, allocations: 50.38 MB / 386.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2595/0.4576, allocations: 119 MB / 0.4941 GB, free: 102.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.4579, allocations: 97.98 kB / 0.4942 GB, free: 102.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1734/0.6313, allocations: 79.44 MB / 0.5718 GB, free: 37.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002331/0.6316, allocations: 99.86 kB / 0.5719 GB, free: 37.7 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.007589/0.6392, allocations: 3.455 MB / 0.5753 GB, free: 34.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.6392, allocations: 8.031 kB / 0.5753 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003358/0.6426, allocations: 0.6393 MB / 0.5759 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007711/0.6503, allocations: 3.379 MB / 0.5792 GB, free: 30.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.6505, allocations: 120 kB / 0.5793 GB, free: 29.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005705/0.651, allocations: 203.9 kB / 0.5795 GB, free: 29.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005524/0.6566, allocations: 3.251 MB / 0.5827 GB, free: 26.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006387/0.663, allocations: 3.861 MB / 0.5864 GB, free: 22.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.93e-05/0.6631, allocations: 7.906 kB / 0.5864 GB, free: 22.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002797/0.6634, allocations: 4 kB / 0.5864 GB, free: 22.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/0.6635, allocations: 166.8 kB / 0.5866 GB, free: 22.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01739/0.6809, allocations: 13.95 MB / 0.6002 GB, free: 7.988 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.6824, allocations: 1.183 MB / 0.6014 GB, free: 6.797 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001462/0.6839, allocations: 1.261 MB / 0.6026 GB, free: 5.539 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005567/0.6894, allocations: 4.126 MB / 0.6066 GB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.6895, allocations: 47.88 kB / 0.6067 GB, free: 1.266 MB / 378.7 MB Notification: Performance of pre-optimization done (n=157): time 3.206e-06/0.6895, allocations: 0 / 0.6067 GB, free: 1.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=161): time 0.007663/0.6972, allocations: 4.684 MB / 0.6113 GB, free: 12.47 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.6972, allocations: 68.72 kB / 0.6113 GB, free: 12.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002631/0.6999, allocations: 1.564 MB / 0.6129 GB, free: 10.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004156/0.7003, allocations: 29.7 kB / 0.6129 GB, free: 10.76 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008815/0.7012, allocations: 1.317 MB / 0.6142 GB, free: 9.418 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005576/0.7018, allocations: 0.5273 MB / 0.6147 GB, free: 8.883 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.959e-05/0.7018, allocations: 0 / 0.6147 GB, free: 8.883 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.7021, allocations: 389.9 kB / 0.6151 GB, free: 8.496 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.7034, allocations: 0.7889 MB / 0.6158 GB, free: 7.703 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/0.7051, allocations: 1.393 MB / 0.6172 GB, free: 6.027 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001808/0.7069, allocations: 1.079 MB / 0.6182 GB, free: 4.949 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.7069, allocations: 11.98 kB / 0.6183 GB, free: 4.938 MB / 394.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004417/0.7113, allocations: 2.589 MB / 0.6208 GB, free: 2.312 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.7114, allocations: 4 kB / 0.6208 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-05/0.7114, allocations: 20 kB / 0.6208 GB, free: 2.289 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004007/0.7118, allocations: 142.5 kB / 0.6209 GB, free: 2.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001994/0.7138, allocations: 491.4 kB / 0.6214 GB, free: 1.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002381/0.7162, allocations: 2.948 MB / 0.6243 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/0.7179, allocations: 67.69 kB / 0.6244 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.7181, allocations: 92.05 kB / 0.6244 GB, free: 14.32 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (253): * Single equations (assignments): 250 * 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: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002975/0.7184, allocations: 164.3 kB / 0.6246 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003133/0.7187, allocations: 213.4 kB / 0.6248 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004409/0.7232, allocations: 2.374 MB / 0.6271 GB, free: 11.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.7232, allocations: 16 kB / 0.6271 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.7232, allocations: 4 kB / 0.6271 GB, free: 11.49 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.7232, allocations: 7.969 kB / 0.6271 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008953/0.7322, allocations: 5.334 MB / 0.6324 GB, free: 5.992 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.7322, allocations: 0 / 0.6324 GB, free: 5.992 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.7336, allocations: 267.6 kB / 0.6326 GB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007457/0.7343, allocations: 267.5 kB / 0.6329 GB, free: 5.457 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.851e-05/0.7344, allocations: 11.98 kB / 0.6329 GB, free: 5.445 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005895/0.7404, allocations: 6.733 MB / 0.6395 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.7404, allocations: 4 kB / 0.6395 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005687/0.7461, allocations: 3.737 MB / 0.6431 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/0.7473, allocations: 482.3 kB / 0.6436 GB, free: 9.848 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/0.7477, allocations: 8 kB / 0.6436 GB, free: 9.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.7489, allocations: 47.94 kB / 0.6436 GB, free: 9.793 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.7491, allocations: 85.19 kB / 0.6437 GB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.7492, allocations: 43.89 kB / 0.6437 GB, free: 9.668 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001885/0.7511, allocations: 1.165 MB / 0.6449 GB, free: 8.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002505/0.7536, allocations: 0.5586 MB / 0.6454 GB, free: 7.922 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * 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 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008308/0.7544, allocations: 452.3 kB / 0.6459 GB, free: 7.469 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003553/0.758, allocations: 2.256 MB / 0.6481 GB, free: 5.172 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.758, allocations: 4.125 kB / 0.6481 GB, free: 5.168 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002064/0.7601, allocations: 1.414 MB / 0.6494 GB, free: 3.715 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/0.7626, allocations: 407.9 kB / 0.6498 GB, free: 3.316 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1381/0.9007, allocations: 5 MB / 0.6547 GB, free: 116.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002276/0.903, allocations: 2.648 MB / 0.6573 GB, free: 116.2 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/0.903, allocations: 0 / 0.6573 GB, free: 116.2 MB / 426.7 MB Notification: Performance of Templates: time 0.04083/0.9439, allocations: 28.17 MB / 0.6848 GB, free: 115.1 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches