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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.435/1.435, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.000888/0.000888, allocations: 90.69 kB / 262.5 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.043e-05/2.044e-05, allocations: 4 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09708, allocations: 47.59 MB / 363.1 MB, free: 7.059 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.46, allocations: 118.3 MB / 481.4 MB, free: 9.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.4604, allocations: 87.92 kB / 481.5 MB, free: 9.938 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3992/0.8596, allocations: 79.36 MB / 0.5477 GB, free: 91.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.8596, allocations: 0 / 0.5477 GB, free: 91.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002823/0.8599, allocations: 95.11 kB / 0.5478 GB, free: 91.13 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.009854/0.8698, allocations: 3.446 MB / 0.5512 GB, free: 89.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.8698, allocations: 7.594 kB / 0.5512 GB, free: 89.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003866/0.8737, allocations: 0.6396 MB / 0.5518 GB, free: 89.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007856/0.8816, allocations: 3.352 MB / 0.5551 GB, free: 88.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.8818, allocations: 120.8 kB / 0.5552 GB, free: 88.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005707/0.8824, allocations: 205.5 kB / 0.5554 GB, free: 88.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005379/0.8877, allocations: 3.203 MB / 0.5585 GB, free: 88.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005478/0.8932, allocations: 3.828 MB / 0.5623 GB, free: 88.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.459e-05/0.8933, allocations: 7.531 kB / 0.5623 GB, free: 88.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002625/0.8936, allocations: 4.281 kB / 0.5623 GB, free: 88.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.8937, allocations: 164.1 kB / 0.5624 GB, free: 88.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01669/0.9104, allocations: 13.93 MB / 0.576 GB, free: 84.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003487/0.914, allocations: 5.341 MB / 0.5812 GB, free: 79.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.9154, allocations: 1.216 MB / 0.5824 GB, free: 79.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005112/0.9205, allocations: 3.825 MB / 0.5862 GB, free: 77.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.9205, allocations: 46.69 kB / 0.5862 GB, free: 77.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 3.817e-06/0.9205, allocations: 4 kB / 0.5862 GB, free: 77.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.005987/0.9265, allocations: 4.318 MB / 0.5904 GB, free: 74.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.258e-05/0.9266, allocations: 63.66 kB / 0.5905 GB, free: 74.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/0.9283, allocations: 1.548 MB / 0.592 GB, free: 74.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.719e-05/0.9284, allocations: 36.36 kB / 0.592 GB, free: 74.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006783/0.9291, allocations: 1.656 MB / 0.5937 GB, free: 72.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.9293, allocations: 456.1 kB / 0.5941 GB, free: 72.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.896e-05/0.9294, allocations: 0 / 0.5941 GB, free: 72.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.998e-05/0.9295, allocations: 376.3 kB / 0.5944 GB, free: 72.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000774/0.9303, allocations: 0.6698 MB / 0.5951 GB, free: 71.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.9313, allocations: 1.276 MB / 0.5963 GB, free: 70.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.9326, allocations: 0.9947 MB / 0.5973 GB, free: 70.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.9327, allocations: 7.75 kB / 0.5973 GB, free: 70.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.003054/0.9357, allocations: 2.361 MB / 0.5996 GB, free: 69.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.9358, allocations: 11.69 kB / 0.5996 GB, free: 69.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.9358, allocations: 25.56 kB / 0.5997 GB, free: 69.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003158/0.9361, allocations: 137 kB / 0.5998 GB, free: 69.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/0.9377, allocations: 471.6 kB / 0.6002 GB, free: 69.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001632/0.9394, allocations: 2.947 MB / 0.6031 GB, free: 66.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.9408, allocations: 82.86 kB / 0.6032 GB, free: 66.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.9409, allocations: 84.25 kB / 0.6033 GB, free: 66.76 MB / 410.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 (229): * Single equations (assignments): 226 * 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.0002611/0.9412, allocations: 171.2 kB / 0.6034 GB, free: 66.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002698/0.9415, allocations: 198.8 kB / 0.6036 GB, free: 66.49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003321/0.9448, allocations: 2.14 MB / 0.6057 GB, free: 65.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.9448, allocations: 19.06 kB / 0.6057 GB, free: 65.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.9448, allocations: 3.688 kB / 0.6057 GB, free: 65.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.9449, allocations: 7.734 kB / 0.6058 GB, free: 65.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006461/0.9513, allocations: 4.757 MB / 0.6104 GB, free: 63.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.9514, allocations: 3.938 kB / 0.6104 GB, free: 63.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009662/0.9523, allocations: 244 kB / 0.6106 GB, free: 63.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005787/0.9529, allocations: 267.4 kB / 0.6109 GB, free: 63.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.658e-05/0.953, allocations: 14.95 kB / 0.6109 GB, free: 63.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004293/0.9573, allocations: 6.819 MB / 0.6176 GB, free: 57.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.9573, allocations: 3.75 kB / 0.6176 GB, free: 57.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003761/0.9611, allocations: 3.343 MB / 0.6208 GB, free: 54.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000723/0.9618, allocations: 456.4 kB / 0.6213 GB, free: 53.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/0.9621, allocations: 4 kB / 0.6213 GB, free: 53.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009254/0.963, allocations: 67.92 kB / 0.6213 GB, free: 53.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.9632, allocations: 98.59 kB / 0.6214 GB, free: 53.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-05/0.9632, allocations: 39.84 kB / 0.6215 GB, free: 53.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001426/0.9647, allocations: 1.148 MB / 0.6226 GB, free: 52.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9647, allocations: 4 kB / 0.6226 GB, free: 52.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001872/0.9666, allocations: 0.531 MB / 0.6231 GB, free: 51.92 MB / 410.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 (114): * Single equations (assignments): 110 * 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.0005145/0.9671, allocations: 434.5 kB / 0.6235 GB, free: 51.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00217/0.9693, allocations: 1.989 MB / 0.6255 GB, free: 49.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.9693, allocations: 4 kB / 0.6255 GB, free: 49.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.9707, allocations: 1.318 MB / 0.6268 GB, free: 48.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.9725, allocations: 434 kB / 0.6272 GB, free: 48.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007073/0.9796, allocations: 4.796 MB / 0.6319 GB, free: 43.74 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001707/0.9813, allocations: 2.479 MB / 0.6343 GB, free: 41.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001472/0.9828, allocations: 0.4961 MB / 0.6348 GB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003632/0.9832, allocations: 147.1 kB / 0.6349 GB, free: 41.32 MB / 410.7 MB Notification: Performance of SimCode: time 5.52e-07/0.9832, allocations: 3.188 kB / 0.6349 GB, free: 41.32 MB / 410.7 MB Notification: Performance of Templates: time 0.03528/1.018, allocations: 23.79 MB / 0.6581 GB, free: 21.68 MB / 410.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