Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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_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_trunk_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_trunk_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 trunk/package.mo): time 0.001406/0.001406, allocations: 195.9 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009102/0.0009102, allocations: 94.53 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.228e-06/9.258e-06, allocations: 4 kB / 343.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 51.48 MB / 394.6 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.333/0.44, allocations: 120.1 MB / 0.5027 GB, free: 5.719 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.4404, allocations: 95.88 kB / 0.5027 GB, free: 5.672 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4688/0.9092, allocations: 82.02 MB / 0.5828 GB, free: 74.51 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003742/0.9096, allocations: 94.89 kB / 0.5829 GB, free: 74.5 MB / 442.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.01022/0.9199, allocations: 3.477 MB / 0.5863 GB, free: 73.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.92, allocations: 11.28 kB / 0.5863 GB, free: 73.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003973/0.9239, allocations: 0.6472 MB / 0.587 GB, free: 73.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008095/0.932, allocations: 3.401 MB / 0.5903 GB, free: 72.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.9322, allocations: 112.5 kB / 0.5904 GB, free: 72.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007321/0.933, allocations: 207.2 kB / 0.5906 GB, free: 72.49 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005555/0.9385, allocations: 3.25 MB / 0.5938 GB, free: 72.47 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005845/0.9444, allocations: 3.863 MB / 0.5975 GB, free: 72.03 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.911e-05/0.9445, allocations: 9.5 kB / 0.5976 GB, free: 72.03 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.9448, allocations: 3.719 kB / 0.5976 GB, free: 72.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/0.9449, allocations: 163.5 kB / 0.5977 GB, free: 72.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01967/0.9646, allocations: 14.12 MB / 0.6115 GB, free: 68.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.9662, allocations: 1.175 MB / 0.6127 GB, free: 68.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.9681, allocations: 1.302 MB / 0.6139 GB, free: 68.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006126/0.9742, allocations: 4.291 MB / 0.6181 GB, free: 67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.9742, allocations: 54.59 kB / 0.6182 GB, free: 66.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 3.867e-06/0.9743, allocations: 0 / 0.6182 GB, free: 66.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=161): time 0.006987/0.9813, allocations: 4.677 MB / 0.6227 GB, free: 64.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.9813, allocations: 73.34 kB / 0.6228 GB, free: 64.55 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002002/0.9833, allocations: 1.571 MB / 0.6243 GB, free: 63.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.802e-05/0.9834, allocations: 25.7 kB / 0.6244 GB, free: 63.85 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004501/0.9839, allocations: 1.315 MB / 0.6256 GB, free: 62.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002851/0.9842, allocations: 0.5312 MB / 0.6262 GB, free: 62.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.319e-05/0.9842, allocations: 0 / 0.6262 GB, free: 62.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.802e-05/0.9844, allocations: 396.7 kB / 0.6265 GB, free: 62.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009485/0.9853, allocations: 0.787 MB / 0.6273 GB, free: 61.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.9865, allocations: 1.392 MB / 0.6287 GB, free: 60.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.9879, allocations: 1.081 MB / 0.6297 GB, free: 60.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.9879, allocations: 6.969 kB / 0.6297 GB, free: 60.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003485/0.9914, allocations: 2.587 MB / 0.6323 GB, free: 59.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.9915, allocations: 11.56 kB / 0.6323 GB, free: 59.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/0.9915, allocations: 19.31 kB / 0.6323 GB, free: 59.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003299/0.9918, allocations: 140.8 kB / 0.6324 GB, free: 59.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.9936, allocations: 498.4 kB / 0.6329 GB, free: 59.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/0.9953, allocations: 2.938 MB / 0.6358 GB, free: 56.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.9969, allocations: 58.84 kB / 0.6358 GB, free: 56.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.997, allocations: 88.83 kB / 0.6359 GB, free: 56.49 MB / 442.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.0002613/0.9973, allocations: 167.7 kB / 0.6361 GB, free: 56.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002604/0.9975, allocations: 212.7 kB / 0.6363 GB, free: 56.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00347/1.001, allocations: 2.371 MB / 0.6386 GB, free: 55.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/1.001, allocations: 15.47 kB / 0.6386 GB, free: 55.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/1.001, allocations: 11.47 kB / 0.6386 GB, free: 55.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/1.001, allocations: 7.031 kB / 0.6386 GB, free: 55.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007566/1.009, allocations: 5.33 MB / 0.6438 GB, free: 52.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/1.009, allocations: 1.312 kB / 0.6438 GB, free: 52.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/1.01, allocations: 267.6 kB / 0.6441 GB, free: 52.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007424/1.011, allocations: 267.9 kB / 0.6443 GB, free: 52.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/1.011, allocations: 17.73 kB / 0.6444 GB, free: 52.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005634/1.016, allocations: 6.723 MB / 0.6509 GB, free: 46.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/1.017, allocations: 8.156 kB / 0.6509 GB, free: 46.72 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006123/1.023, allocations: 3.731 MB / 0.6546 GB, free: 44.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001628/1.024, allocations: 484 kB / 0.655 GB, free: 44.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003991/1.025, allocations: 11.86 kB / 0.655 GB, free: 44.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/1.026, allocations: 45.7 kB / 0.6551 GB, free: 44.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/1.026, allocations: 85.23 kB / 0.6552 GB, free: 44.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/1.026, allocations: 43.47 kB / 0.6552 GB, free: 44.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002101/1.028, allocations: 1.172 MB / 0.6564 GB, free: 43.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002812/1.031, allocations: 0.558 MB / 0.6569 GB, free: 43.92 MB / 442.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.0008169/1.032, allocations: 480.3 kB / 0.6574 GB, free: 43.76 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003582/1.035, allocations: 2.253 MB / 0.6596 GB, free: 42.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/1.035, allocations: 0 / 0.6596 GB, free: 42.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0019/1.037, allocations: 1.404 MB / 0.6609 GB, free: 41.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002406/1.04, allocations: 425.1 kB / 0.6613 GB, free: 41.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/1.052, allocations: 5.028 MB / 0.6662 GB, free: 39.81 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002642/1.055, allocations: 2.652 MB / 0.6688 GB, free: 38.72 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/1.055, allocations: 0 / 0.6688 GB, free: 38.72 MB / 442.7 MB Notification: Performance of Templates: time 0.05056/1.105, allocations: 28.47 MB / 0.6966 GB, free: 34.72 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches