Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo): time 0.0009927/0.0009927, allocations: 172.6 kB / 8.47 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.2 MB / 214.1 MB, free: 5.426 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008325/0.0008324, allocations: 86.78 kB / 262.1 MB, free: 5.48 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.151e-05/1.153e-05, allocations: 4 kB / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07257/0.07261, allocations: 47.58 MB / 362.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2693/0.342, allocations: 118 MB / 480.6 MB, free: 7.301 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.3422, allocations: 98.02 kB / 480.7 MB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1952/0.5375, allocations: 79.07 MB / 0.5466 GB, free: 14.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002267/0.5377, allocations: 91.88 kB / 0.5467 GB, free: 14.79 MB / 410.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.00843/0.5462, allocations: 3.439 MB / 0.5501 GB, free: 11.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.5462, allocations: 8.031 kB / 0.5501 GB, free: 11.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003593/0.5498, allocations: 0.6471 MB / 0.5507 GB, free: 10.63 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008029/0.5579, allocations: 3.375 MB / 0.554 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.558, allocations: 112 kB / 0.5541 GB, free: 7.094 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004507/0.5585, allocations: 207.9 kB / 0.5543 GB, free: 6.891 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005792/0.5643, allocations: 3.251 MB / 0.5575 GB, free: 3.637 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007026/0.5713, allocations: 3.873 MB / 0.5613 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-05/0.5715, allocations: 7.844 kB / 0.5613 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002834/0.5717, allocations: 4 kB / 0.5613 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001718/0.5719, allocations: 166.8 kB / 0.5614 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0265/0.5984, allocations: 13.95 MB / 0.5751 GB, free: 1.082 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1589/0.7574, allocations: 1.176 MB / 0.5762 GB, free: 135 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002064/0.7595, allocations: 1.279 MB / 0.5775 GB, free: 135 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006516/0.7661, allocations: 4.096 MB / 0.5815 GB, free: 134.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.7661, allocations: 50.25 kB / 0.5815 GB, free: 134.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=156): time 3.326e-06/0.7661, allocations: 0 / 0.5815 GB, free: 134.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=160): time 0.006752/0.7729, allocations: 4.664 MB / 0.5861 GB, free: 133.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.405e-05/0.7729, allocations: 68.53 kB / 0.5861 GB, free: 133.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001942/0.7749, allocations: 1.567 MB / 0.5876 GB, free: 133.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.344e-05/0.775, allocations: 29.52 kB / 0.5877 GB, free: 133.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005552/0.7755, allocations: 1.322 MB / 0.589 GB, free: 132.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002984/0.7758, allocations: 0.528 MB / 0.5895 GB, free: 132.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.41e-05/0.7759, allocations: 0 / 0.5895 GB, free: 132.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.776, allocations: 382.9 kB / 0.5898 GB, free: 132 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009557/0.777, allocations: 0.7834 MB / 0.5906 GB, free: 132 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.7782, allocations: 1.395 MB / 0.592 GB, free: 131.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.7796, allocations: 1.083 MB / 0.593 GB, free: 131.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.7796, allocations: 9.906 kB / 0.593 GB, free: 131.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003509/0.7832, allocations: 2.58 MB / 0.5956 GB, free: 131 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.7832, allocations: 7.438 kB / 0.5956 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/0.7832, allocations: 18.19 kB / 0.5956 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003672/0.7836, allocations: 145.8 kB / 0.5957 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/0.7854, allocations: 492.6 kB / 0.5962 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.7875, allocations: 2.944 MB / 0.5991 GB, free: 128.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001755/0.7893, allocations: 61.7 kB / 0.5991 GB, free: 128.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.7894, allocations: 87.56 kB / 0.5992 GB, free: 128.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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.0002823/0.7897, allocations: 171.3 kB / 0.5994 GB, free: 128.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.79, allocations: 209.2 kB / 0.5996 GB, free: 128.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00363/0.7936, allocations: 2.352 MB / 0.6019 GB, free: 127.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.7936, allocations: 20.5 kB / 0.6019 GB, free: 127.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.7937, allocations: 2.719 kB / 0.6019 GB, free: 127.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.7937, allocations: 10.41 kB / 0.6019 GB, free: 127.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007439/0.8011, allocations: 5.333 MB / 0.6071 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.8012, allocations: 3.562 kB / 0.6071 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.8023, allocations: 265.5 kB / 0.6074 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006545/0.803, allocations: 276.4 kB / 0.6076 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.37e-05/0.8031, allocations: 13.62 kB / 0.6076 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00465/0.8078, allocations: 6.706 MB / 0.6142 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.8078, allocations: 9.156 kB / 0.6142 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004497/0.8123, allocations: 3.736 MB / 0.6179 GB, free: 121.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/0.8134, allocations: 482.7 kB / 0.6183 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003145/0.8137, allocations: 12.56 kB / 0.6183 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.8148, allocations: 51.03 kB / 0.6184 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.8149, allocations: 79.36 kB / 0.6184 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.219e-05/0.815, allocations: 42.23 kB / 0.6185 GB, free: 121.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001612/0.8167, allocations: 1.17 MB / 0.6196 GB, free: 120.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002125/0.8188, allocations: 0.5406 MB / 0.6202 GB, free: 120.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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.0006157/0.8194, allocations: 442.4 kB / 0.6206 GB, free: 120.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002939/0.8224, allocations: 2.254 MB / 0.6228 GB, free: 120.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.8224, allocations: 0 / 0.6228 GB, free: 120.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.8241, allocations: 1.409 MB / 0.6242 GB, free: 120.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002158/0.8263, allocations: 411.4 kB / 0.6246 GB, free: 120.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009875/0.8362, allocations: 5.017 MB / 0.6295 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00255/0.8388, allocations: 2.659 MB / 0.632 GB, free: 118.2 MB / 426.7 MB Notification: Performance of SimCode: time 7.42e-07/0.8388, allocations: 0 / 0.632 GB, free: 118.2 MB / 426.7 MB Notification: Performance of Templates: time 0.04735/0.8861, allocations: 28.03 MB / 0.6594 GB, free: 112.3 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches