Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 trunk/package.mo): time 0.001111/0.001111, allocations: 200.4 kB / 8.539 MB, free: 1.746 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 225.5 MB / 234.4 MB, free: 3.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009376/0.0009376, allocations: 97.39 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.126e-06/8.146e-06, allocations: 4 kB / 343.2 MB, free: 8.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09295/0.09297, allocations: 51.47 MB / 394.6 MB, free: 5.023 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3412/0.4342, allocations: 131.8 MB / 0.5141 GB, free: 10.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.4346, allocations: 90.12 kB / 0.5142 GB, free: 10.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.4867/0.9212, allocations: 125.9 MB / 0.6371 GB, free: 61.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005488/0.9218, allocations: 139.1 kB / 0.6373 GB, free: 61.15 MB / 442.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.01802/0.9399, allocations: 5.17 MB / 0.6423 GB, free: 59.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.9399, allocations: 8.562 kB / 0.6423 GB, free: 59.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007697/0.9476, allocations: 1.023 MB / 0.6433 GB, free: 58.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01453/0.9622, allocations: 4.634 MB / 0.6479 GB, free: 57.11 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004271/0.9627, allocations: 175.3 kB / 0.648 GB, free: 57.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002435/0.9651, allocations: 318.5 kB / 0.6483 GB, free: 57.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01538/0.9805, allocations: 5.188 MB / 0.6534 GB, free: 54.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01652/0.997, allocations: 6.107 MB / 0.6594 GB, free: 52.22 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001838/0.9972, allocations: 16.58 kB / 0.6594 GB, free: 52.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006218/0.9979, allocations: 10.61 kB / 0.6594 GB, free: 52.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001962/0.9981, allocations: 250 kB / 0.6596 GB, free: 52.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03811/1.036, allocations: 21.78 MB / 0.6809 GB, free: 40.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00264/1.039, allocations: 1.815 MB / 0.6827 GB, free: 39.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002916/1.042, allocations: 2.219 MB / 0.6848 GB, free: 38.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01182/1.054, allocations: 6.856 MB / 0.6915 GB, free: 35.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/1.054, allocations: 68.52 kB / 0.6916 GB, free: 35.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=267): time 4.328e-06/1.054, allocations: 0 / 0.6916 GB, free: 35.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=294): time 0.01777/1.072, allocations: 9.189 MB / 0.7006 GB, free: 26.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/1.072, allocations: 85.72 kB / 0.7006 GB, free: 26.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004/1.076, allocations: 2.232 MB / 0.7028 GB, free: 24.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005407/1.076, allocations: 25.7 kB / 0.7029 GB, free: 24.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008808/1.077, allocations: 1.968 MB / 0.7048 GB, free: 22.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006925/1.078, allocations: 0.9583 MB / 0.7057 GB, free: 21.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/1.078, allocations: 0 / 0.7057 GB, free: 21.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/1.078, allocations: 453.5 kB / 0.7061 GB, free: 21.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/1.08, allocations: 1.456 MB / 0.7076 GB, free: 19.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0022/1.082, allocations: 2.427 MB / 0.7099 GB, free: 17.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002837/1.085, allocations: 1.955 MB / 0.7118 GB, free: 15.15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/1.085, allocations: 8 kB / 0.7119 GB, free: 15.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=455) (initialization): time 0.007679/1.093, allocations: 4.876 MB / 0.7166 GB, free: 10.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/1.093, allocations: 4 kB / 0.7166 GB, free: 10.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.422e-05/1.093, allocations: 28 kB / 0.7166 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001645/1.094, allocations: 0.7307 MB / 0.7174 GB, free: 9.422 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003078/1.098, allocations: 0.8074 MB / 0.7181 GB, free: 8.613 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008427/1.106, allocations: 9.027 MB / 0.727 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004365/1.11, allocations: 107.8 kB / 0.7271 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009079/1.111, allocations: 164 kB / 0.7272 GB, free: 14.86 MB / 458.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 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007819/1.112, allocations: 199.8 kB / 0.7274 GB, free: 14.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/1.113, allocations: 328 kB / 0.7277 GB, free: 14.33 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009127/1.122, allocations: 4.472 MB / 0.7321 GB, free: 9.766 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/1.122, allocations: 32 kB / 0.7321 GB, free: 9.734 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-05/1.122, allocations: 15.91 kB / 0.7321 GB, free: 9.719 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.448e-05/1.122, allocations: 11.95 kB / 0.7321 GB, free: 9.707 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0183/1.141, allocations: 9.354 MB / 0.7413 GB, free: 164 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/1.141, allocations: 4 kB / 0.7413 GB, free: 160 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1687/1.31, allocations: 465.7 kB / 0.7417 GB, free: 120.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002534/1.312, allocations: 0.9486 MB / 0.7427 GB, free: 120.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003458/1.312, allocations: 32.03 kB / 0.7427 GB, free: 120.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/1.325, allocations: 14.85 MB / 0.7572 GB, free: 111.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/1.325, allocations: 11.75 kB / 0.7572 GB, free: 111.6 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009319/1.334, allocations: 6.899 MB / 0.7639 GB, free: 110.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001805/1.336, allocations: 0.7256 MB / 0.7646 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005564/1.337, allocations: 23.91 kB / 0.7647 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/1.338, allocations: 106.7 kB / 0.7648 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002901/1.339, allocations: 159 kB / 0.7649 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002133/1.339, allocations: 85.66 kB / 0.765 GB, free: 110.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002289/1.341, allocations: 1.646 MB / 0.7666 GB, free: 110.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003249/1.344, allocations: 0.9768 MB / 0.7676 GB, free: 110.2 MB / 458.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.000791/1.345, allocations: 0.4959 MB / 0.7681 GB, free: 110.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005478/1.351, allocations: 4.323 MB / 0.7723 GB, free: 109.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/1.351, allocations: 2.656 kB / 0.7723 GB, free: 109.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003873/1.355, allocations: 2.741 MB / 0.775 GB, free: 108.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003714/1.358, allocations: 0.6704 MB / 0.7756 GB, free: 108.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/1.374, allocations: 8.463 MB / 0.7839 GB, free: 106.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003666/1.377, allocations: 3.766 MB / 0.7875 GB, free: 105.9 MB / 458.7 MB Notification: Performance of SimCode: time 7.62e-07/1.378, allocations: 0 / 0.7875 GB, free: 105.9 MB / 458.7 MB Notification: Performance of Templates: time 0.08015/1.458, allocations: 50.07 MB / 0.8365 GB, free: 102.9 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches