Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.003643/0.003642, allocations: 174.7 kB / 8.147 MB, free: 2.203 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.813/1.813, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.001298/0.001298, allocations: 88.8 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.718e-05/1.762e-05, allocations: 4 kB / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3333, allocations: 47.56 MB / 361.8 MB, free: 45.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1951/0.5285, allocations: 124.3 MB / 486.1 MB, free: 9.664 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.5289, allocations: 88.44 kB / 486.2 MB, free: 9.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.5789/1.108, allocations: 114.3 MB / 0.5865 GB, free: 55.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005915/1.108, allocations: 129 kB / 0.5866 GB, free: 55.33 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02086/1.129, allocations: 4.899 MB / 0.5914 GB, free: 50.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/1.129, allocations: 8.688 kB / 0.5914 GB, free: 50.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008024/1.137, allocations: 0.9611 MB / 0.5923 GB, free: 49.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01706/1.154, allocations: 4.409 MB / 0.5966 GB, free: 44.99 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003471/1.155, allocations: 172 kB / 0.5968 GB, free: 44.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00205/1.157, allocations: 307.8 kB / 0.5971 GB, free: 44.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01764/1.175, allocations: 5.011 MB / 0.602 GB, free: 39.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02155/1.196, allocations: 5.885 MB / 0.6077 GB, free: 33.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002281/1.197, allocations: 11.89 kB / 0.6077 GB, free: 33.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001073/1.198, allocations: 4 kB / 0.6077 GB, free: 33.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002362/1.198, allocations: 238.2 kB / 0.608 GB, free: 33.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05769/1.256, allocations: 20.26 MB / 0.6278 GB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004842/1.26, allocations: 1.725 MB / 0.6294 GB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00524/1.266, allocations: 2.075 MB / 0.6315 GB, free: 8.789 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01954/1.285, allocations: 6.313 MB / 0.6376 GB, free: 2.371 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/1.285, allocations: 64.5 kB / 0.6377 GB, free: 2.301 MB / 394.7 MB Notification: Performance of pre-optimization done (n=250): time 6.032e-06/1.285, allocations: 0 / 0.6377 GB, free: 2.301 MB / 394.7 MB Notification: Performance of matching and sorting (n=274): time 0.03136/1.317, allocations: 8.745 MB / 0.6462 GB, free: 9.422 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/1.317, allocations: 89.55 kB / 0.6463 GB, free: 9.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006206/1.323, allocations: 2.059 MB / 0.6483 GB, free: 7.254 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006759/1.324, allocations: 29.7 kB / 0.6484 GB, free: 7.219 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001483/1.325, allocations: 1.743 MB / 0.6501 GB, free: 5.449 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001621/1.327, allocations: 0.9006 MB / 0.6509 GB, free: 4.535 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/1.327, allocations: 0 / 0.6509 GB, free: 4.535 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000345/1.328, allocations: 441.8 kB / 0.6514 GB, free: 4.094 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004402/1.332, allocations: 1.393 MB / 0.6527 GB, free: 2.699 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005254/1.337, allocations: 2.263 MB / 0.6549 GB, free: 52 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1616/1.499, allocations: 1.841 MB / 0.6567 GB, free: 108.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-05/1.499, allocations: 9.281 kB / 0.6567 GB, free: 108.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.01314/1.512, allocations: 4.468 MB / 0.6611 GB, free: 107.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/1.512, allocations: 9.219 kB / 0.6611 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-05/1.513, allocations: 30.22 kB / 0.6611 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002924/1.515, allocations: 0.702 MB / 0.6618 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006373/1.522, allocations: 0.753 MB / 0.6626 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01398/1.536, allocations: 8.778 MB / 0.6711 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003163/1.539, allocations: 99.92 kB / 0.6712 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000439/1.54, allocations: 140.1 kB / 0.6714 GB, free: 103 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (385): * Single equations (assignments): 379 * 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,60.9%) 20,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007104/1.54, allocations: 120.7 kB / 0.6715 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009916/1.541, allocations: 313 kB / 0.6718 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/1.554, allocations: 4.277 MB / 0.676 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.721e-05/1.554, allocations: 31.31 kB / 0.676 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.199e-05/1.554, allocations: 11.94 kB / 0.676 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.577e-05/1.554, allocations: 17.77 kB / 0.676 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02542/1.58, allocations: 8.819 MB / 0.6846 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-05/1.58, allocations: 5.688 kB / 0.6846 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00427/1.584, allocations: 439.9 kB / 0.6851 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004573/1.589, allocations: 0.9318 MB / 0.686 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005311/1.589, allocations: 33.77 kB / 0.686 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02171/1.611, allocations: 14.43 MB / 0.7001 GB, free: 93.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/1.611, allocations: 3.656 kB / 0.7001 GB, free: 93.04 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01913/1.63, allocations: 6.466 MB / 0.7064 GB, free: 91.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003768/1.634, allocations: 0.6764 MB / 0.7071 GB, free: 91.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001894/1.636, allocations: 24.34 kB / 0.7071 GB, free: 91.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005628/1.642, allocations: 108.5 kB / 0.7072 GB, free: 91.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001026/1.643, allocations: 147.2 kB / 0.7073 GB, free: 91.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004512/1.643, allocations: 74.64 kB / 0.7074 GB, free: 91.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005551/1.649, allocations: 1.526 MB / 0.7089 GB, free: 91.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007784/1.657, allocations: 0.9066 MB / 0.7098 GB, free: 91.58 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 211 * 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%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001791/1.658, allocations: 410.1 kB / 0.7102 GB, free: 91.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01127/1.67, allocations: 4.143 MB / 0.7142 GB, free: 90.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/1.67, allocations: 3.719 kB / 0.7142 GB, free: 90.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007083/1.677, allocations: 2.628 MB / 0.7168 GB, free: 90.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006086/1.683, allocations: 0.5651 MB / 0.7173 GB, free: 89.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02999/1.713, allocations: 8.095 MB / 0.7252 GB, free: 86.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01004/1.723, allocations: 3.574 MB / 0.7287 GB, free: 85.46 MB / 410.7 MB Notification: Performance of SimCode: time 1.783e-06/1.723, allocations: 1.344 kB / 0.7287 GB, free: 85.46 MB / 410.7 MB Notification: Performance of Templates: time 0.4893/2.213, allocations: 208.7 MB / 0.9326 GB, free: 57.1 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches