Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") [: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.002008/0.002007, allocations: 179.8 kB / 8.152 MB, free: 2.191 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.803/1.803, allocations: 205.2 MB / 213.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001264/0.001263, allocations: 87.84 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.447e-06/9.578e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2509, allocations: 47.56 MB / 361.8 MB, free: 45.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2469/0.4978, allocations: 129.6 MB / 491.5 MB, free: 4.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004812/0.4984, allocations: 83.95 kB / 491.6 MB, free: 4.262 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.6673/1.166, allocations: 122.4 MB / 0.5996 GB, free: 43.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006323/1.166, allocations: 141.1 kB / 0.5997 GB, free: 42.91 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02146/1.188, allocations: 5.118 MB / 0.6047 GB, free: 37.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/1.188, allocations: 8.031 kB / 0.6047 GB, free: 37.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008407/1.196, allocations: 1.015 MB / 0.6057 GB, free: 36.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01768/1.214, allocations: 4.612 MB / 0.6102 GB, free: 32.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003768/1.215, allocations: 183.9 kB / 0.6104 GB, free: 31.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002182/1.217, allocations: 323.8 kB / 0.6107 GB, free: 31.53 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01803/1.235, allocations: 5.18 MB / 0.6158 GB, free: 26.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/1.257, allocations: 6.123 MB / 0.6218 GB, free: 20.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003191/1.258, allocations: 19.84 kB / 0.6218 GB, free: 20 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001762/1.26, allocations: 4 kB / 0.6218 GB, free: 20 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002835/1.26, allocations: 250.6 kB / 0.622 GB, free: 19.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06171/1.322, allocations: 21.62 MB / 0.6431 GB, free: 13.56 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005754/1.327, allocations: 1.812 MB / 0.6449 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006678/1.334, allocations: 2.181 MB / 0.647 GB, free: 9.562 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02925/1.363, allocations: 6.605 MB / 0.6535 GB, free: 2.809 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001223/1.364, allocations: 64.67 kB / 0.6536 GB, free: 2.734 MB / 410.7 MB Notification: Performance of pre-optimization done (n=267): time 1.019e-05/1.364, allocations: 0 / 0.6536 GB, free: 2.734 MB / 410.7 MB Notification: Performance of matching and sorting (n=294): time 0.2001/1.564, allocations: 9.169 MB / 0.6625 GB, free: 100.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/1.564, allocations: 84.16 kB / 0.6626 GB, free: 100.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006567/1.57, allocations: 2.23 MB / 0.6648 GB, free: 100.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006609/1.571, allocations: 29.02 kB / 0.6648 GB, free: 100.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/1.572, allocations: 1.832 MB / 0.6666 GB, free: 99.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001463/1.574, allocations: 0.9597 MB / 0.6675 GB, free: 98.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004156/1.574, allocations: 0 / 0.6675 GB, free: 98.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003306/1.575, allocations: 459.2 kB / 0.668 GB, free: 98.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004162/1.579, allocations: 1.451 MB / 0.6694 GB, free: 98.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005047/1.584, allocations: 2.425 MB / 0.6717 GB, free: 97.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005794/1.59, allocations: 1.948 MB / 0.6736 GB, free: 97.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.068e-05/1.59, allocations: 6.562 kB / 0.6737 GB, free: 97.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=455) (initialization): time 0.01509/1.605, allocations: 4.697 MB / 0.6782 GB, free: 97.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/1.605, allocations: 10.34 kB / 0.6782 GB, free: 97.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.008e-05/1.605, allocations: 33.47 kB / 0.6783 GB, free: 97.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003052/1.608, allocations: 0.7152 MB / 0.679 GB, free: 97.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006863/1.615, allocations: 0.8185 MB / 0.6798 GB, free: 97.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01494/1.63, allocations: 9.082 MB / 0.6886 GB, free: 92.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003574/1.634, allocations: 107.7 kB / 0.6887 GB, free: 92.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009172/1.635, allocations: 152.5 kB / 0.6889 GB, free: 92.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 412 * 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: 4 * 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: 4 {(8,59.4%) 21,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009646/1.636, allocations: 124.1 kB / 0.689 GB, free: 92.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.637, allocations: 332.5 kB / 0.6893 GB, free: 91.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/1.652, allocations: 4.471 MB / 0.6937 GB, free: 91.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-05/1.652, allocations: 29.81 kB / 0.6937 GB, free: 91.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.925e-05/1.652, allocations: 7.344 kB / 0.6937 GB, free: 91.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-05/1.652, allocations: 17 kB / 0.6937 GB, free: 91.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02962/1.682, allocations: 9.332 MB / 0.7029 GB, free: 90.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.28e-05/1.682, allocations: 6.719 kB / 0.7029 GB, free: 90.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004564/1.687, allocations: 472.9 kB / 0.7033 GB, free: 90.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004649/1.691, allocations: 0.9405 MB / 0.7042 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006368/1.692, allocations: 32.83 kB / 0.7043 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02343/1.715, allocations: 14.86 MB / 0.7188 GB, free: 81.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/1.715, allocations: 6.5 kB / 0.7188 GB, free: 81.52 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01912/1.735, allocations: 6.888 MB / 0.7255 GB, free: 78.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003158/1.738, allocations: 0.7267 MB / 0.7262 GB, free: 78.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001751/1.74, allocations: 19.39 kB / 0.7262 GB, free: 78.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00461/1.744, allocations: 109.7 kB / 0.7263 GB, free: 78.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009331/1.745, allocations: 158.4 kB / 0.7265 GB, free: 78.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005533/1.746, allocations: 81.7 kB / 0.7266 GB, free: 78.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005147/1.751, allocations: 1.642 MB / 0.7282 GB, free: 77.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006779/1.758, allocations: 0.96 MB / 0.7291 GB, free: 77.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 228 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00146/1.759, allocations: 495.2 kB / 0.7296 GB, free: 77.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01152/1.771, allocations: 4.325 MB / 0.7338 GB, free: 75.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/1.771, allocations: 4.109 kB / 0.7338 GB, free: 75.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00865/1.78, allocations: 2.739 MB / 0.7365 GB, free: 74.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007444/1.787, allocations: 0.6531 MB / 0.7371 GB, free: 74.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0322/1.819, allocations: 8.478 MB / 0.7454 GB, free: 70.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01/1.829, allocations: 3.714 MB / 0.749 GB, free: 69.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.924e-06/1.83, allocations: 2.516 kB / 0.749 GB, free: 69.6 MB / 410.7 MB Notification: Performance of Templates: time 0.5502/2.38, allocations: 221.3 MB / 0.9651 GB, free: 22.46 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches