Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|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|vfController3.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|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|vfController3.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") [: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.001568/0.001568, allocations: 181.4 kB / 8.477 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.197/1.197, allocations: 205.2 MB / 214.1 MB, free: 1.816 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.0008593/0.0008593, allocations: 79.33 kB / 262.1 MB, free: 1.766 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.381e-06/5.47e-06, allocations: 0 / 315 MB, free: 23.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07669/0.07671, allocations: 47.58 MB / 362.6 MB, free: 7.375 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.265/0.3418, allocations: 116.7 MB / 479.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.342, allocations: 82.83 kB / 479.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5253/0.8674, allocations: 167.1 MB / 0.6312 GB, free: 52.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006167/0.868, allocations: 171.8 kB / 0.6314 GB, free: 51.93 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02161/0.8897, allocations: 6.719 MB / 0.638 GB, free: 45.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.8897, allocations: 8.031 kB / 0.638 GB, free: 45.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01013/0.8999, allocations: 1.618 MB / 0.6396 GB, free: 43.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01389/0.9138, allocations: 5.957 MB / 0.6454 GB, free: 37.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003551/0.9142, allocations: 247.8 kB / 0.6456 GB, free: 37.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002567/0.9168, allocations: 435.8 kB / 0.646 GB, free: 36.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01582/0.9326, allocations: 7.234 MB / 0.6531 GB, free: 29.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.022/0.9546, allocations: 8.415 MB / 0.6613 GB, free: 21.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003543/0.955, allocations: 7.891 kB / 0.6613 GB, free: 21.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001883/0.9569, allocations: 8 kB / 0.6613 GB, free: 21.01 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002563/0.9572, allocations: 346.6 kB / 0.6617 GB, free: 20.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1867/1.144, allocations: 29.42 MB / 0.6904 GB, free: 81.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002885/1.147, allocations: 2.326 MB / 0.6927 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00385/1.151, allocations: 3.198 MB / 0.6958 GB, free: 81.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01336/1.164, allocations: 8.746 MB / 0.7043 GB, free: 80.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.767e-05/1.164, allocations: 78.41 kB / 0.7044 GB, free: 80.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=352): time 5.451e-06/1.164, allocations: 3.75 kB / 0.7044 GB, free: 80.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=360): time 0.0171/1.181, allocations: 9.498 MB / 0.7137 GB, free: 78.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/1.181, allocations: 92.89 kB / 0.7138 GB, free: 78.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003947/1.185, allocations: 2.549 MB / 0.7162 GB, free: 78.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000329/1.186, allocations: 25.7 kB / 0.7163 GB, free: 78.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001078/1.187, allocations: 2.574 MB / 0.7188 GB, free: 77.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009344/1.188, allocations: 1.181 MB / 0.7199 GB, free: 76.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/1.188, allocations: 0 / 0.7199 GB, free: 76.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001888/1.188, allocations: 471.5 kB / 0.7204 GB, free: 75.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002087/1.19, allocations: 1.64 MB / 0.722 GB, free: 75.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002459/1.193, allocations: 2.771 MB / 0.7247 GB, free: 74.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003383/1.196, allocations: 2.265 MB / 0.7269 GB, free: 74.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/1.196, allocations: 12.44 kB / 0.7269 GB, free: 74.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.007792/1.204, allocations: 5.251 MB / 0.732 GB, free: 74.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/1.204, allocations: 3.656 kB / 0.732 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.38e-05/1.204, allocations: 35.94 kB / 0.7321 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008551/1.205, allocations: 401.1 kB / 0.7325 GB, free: 74.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003705/1.209, allocations: 0.9804 MB / 0.7334 GB, free: 74.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00522/1.214, allocations: 6.967 MB / 0.7402 GB, free: 69.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004591/1.218, allocations: 106.3 kB / 0.7403 GB, free: 69.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000649/1.219, allocations: 178.1 kB / 0.7405 GB, free: 69.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (520): * Single equations (assignments): 514 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006796/1.22, allocations: 224.6 kB / 0.7407 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006428/1.22, allocations: 382.4 kB / 0.7411 GB, free: 68.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008034/1.228, allocations: 4.891 MB / 0.7459 GB, free: 68.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.857e-05/1.228, allocations: 33.12 kB / 0.7459 GB, free: 68.33 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.111e-05/1.229, allocations: 16.84 kB / 0.7459 GB, free: 68.33 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.947e-05/1.229, allocations: 17.48 kB / 0.7459 GB, free: 68.33 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01728/1.246, allocations: 11.07 MB / 0.7567 GB, free: 63.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/1.246, allocations: 3.5 kB / 0.7567 GB, free: 63.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002496/1.248, allocations: 0.5488 MB / 0.7573 GB, free: 63.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002184/1.251, allocations: 0.8698 MB / 0.7581 GB, free: 63.26 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003407/1.251, allocations: 34.81 kB / 0.7581 GB, free: 63.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0136/1.265, allocations: 15.31 MB / 0.7731 GB, free: 51.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/1.265, allocations: 14.19 kB / 0.7731 GB, free: 51.34 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01127/1.276, allocations: 7.622 MB / 0.7806 GB, free: 47.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002869/1.279, allocations: 0.8353 MB / 0.7814 GB, free: 46.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00143/1.28, allocations: 32.64 kB / 0.7814 GB, free: 46.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003108/1.283, allocations: 111 kB / 0.7815 GB, free: 46.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004544/1.284, allocations: 193.1 kB / 0.7817 GB, free: 46.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002775/1.284, allocations: 102.6 kB / 0.7818 GB, free: 46.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00426/1.288, allocations: 1.879 MB / 0.7836 GB, free: 46.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007482/1.296, allocations: 1.162 MB / 0.7848 GB, free: 46.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (289): * Single equations (assignments): 282 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001459/1.297, allocations: 0.5079 MB / 0.7853 GB, free: 45.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007922/1.305, allocations: 4.661 MB / 0.7898 GB, free: 43.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/1.305, allocations: 0 / 0.7898 GB, free: 43.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005716/1.311, allocations: 2.964 MB / 0.7927 GB, free: 42.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006133/1.317, allocations: 0.7354 MB / 0.7934 GB, free: 42.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0292/1.347, allocations: 10.59 MB / 0.8038 GB, free: 33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006433/1.353, allocations: 4.743 MB / 0.8084 GB, free: 29.39 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/1.353, allocations: 0 / 0.8084 GB, free: 29.39 MB / 410.7 MB Notification: Performance of Templates: time 0.259/1.612, allocations: 57.4 MB / 0.8644 GB, free: 68.69 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_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_Inverter_MultiPhase/SMPM_Inverter_MultiPhase.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches