Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.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.ComparisonPolyphase.SMPM_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|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|vfController3.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|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|vfController3.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase") [: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.001412/0.001411, allocations: 203 kB / 8.542 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009278/0.0009279, allocations: 90.17 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/7.895e-06, allocations: 4 kB / 343.2 MB, free: 8.715 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09451, allocations: 51.47 MB / 394.6 MB, free: 5.203 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2792/0.3737, allocations: 119.9 MB / 0.5025 GB, free: 5.918 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/0.3741, allocations: 104.8 kB / 0.5026 GB, free: 5.859 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.5581/0.9322, allocations: 173.3 MB / 0.6719 GB, free: 59.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000738/0.933, allocations: 183.7 kB / 0.6721 GB, free: 59.01 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02238/0.9554, allocations: 6.782 MB / 0.6787 GB, free: 54.74 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.9554, allocations: 9.469 kB / 0.6787 GB, free: 54.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01044/0.9659, allocations: 1.607 MB / 0.6803 GB, free: 53.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01546/0.9814, allocations: 6.03 MB / 0.6862 GB, free: 49.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003738/0.9818, allocations: 233.6 kB / 0.6864 GB, free: 49.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002193/0.984, allocations: 433.1 kB / 0.6868 GB, free: 49.9 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01467/0.9987, allocations: 7.236 MB / 0.6939 GB, free: 46.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01755/1.016, allocations: 8.393 MB / 0.7021 GB, free: 38.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001762/1.016, allocations: 7.906 kB / 0.7021 GB, free: 38.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007192/1.017, allocations: 4 kB / 0.7021 GB, free: 38.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000203/1.017, allocations: 354.6 kB / 0.7024 GB, free: 37.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04418/1.062, allocations: 29.74 MB / 0.7315 GB, free: 7.395 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002948/1.065, allocations: 2.328 MB / 0.7337 GB, free: 5.066 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004317/1.069, allocations: 3.369 MB / 0.737 GB, free: 1.699 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1843/1.253, allocations: 9.249 MB / 0.7461 GB, free: 91.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/1.253, allocations: 68.12 kB / 0.7461 GB, free: 91.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=354): time 6.603e-06/1.253, allocations: 0 / 0.7461 GB, free: 91.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=362): time 0.01742/1.271, allocations: 9.557 MB / 0.7555 GB, free: 90.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/1.271, allocations: 91.73 kB / 0.7555 GB, free: 90.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003835/1.275, allocations: 2.568 MB / 0.758 GB, free: 90.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000391/1.275, allocations: 32.31 kB / 0.7581 GB, free: 90.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00108/1.276, allocations: 2.568 MB / 0.7606 GB, free: 88.77 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008752/1.277, allocations: 1.183 MB / 0.7617 GB, free: 87.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/1.277, allocations: 0 / 0.7617 GB, free: 87.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/1.277, allocations: 473.4 kB / 0.7622 GB, free: 87.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/1.28, allocations: 1.651 MB / 0.7638 GB, free: 87.65 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00267/1.282, allocations: 2.764 MB / 0.7665 GB, free: 86.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003632/1.286, allocations: 2.279 MB / 0.7687 GB, free: 86.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.457e-05/1.286, allocations: 11.47 kB / 0.7687 GB, free: 86.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.008581/1.295, allocations: 5.266 MB / 0.7739 GB, free: 85.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/1.295, allocations: 5.781 kB / 0.7739 GB, free: 85.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.802e-05/1.295, allocations: 38 kB / 0.7739 GB, free: 85.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009251/1.296, allocations: 400 kB / 0.7743 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003734/1.299, allocations: 0.9769 MB / 0.7753 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004828/1.304, allocations: 6.973 MB / 0.7821 GB, free: 80.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003543/1.308, allocations: 102.6 kB / 0.7822 GB, free: 80.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004746/1.308, allocations: 179.3 kB / 0.7823 GB, free: 80.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 158 * 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.0006632/1.309, allocations: 223 kB / 0.7826 GB, free: 80.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006591/1.31, allocations: 382.1 kB / 0.7829 GB, free: 80.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00813/1.318, allocations: 4.928 MB / 0.7877 GB, free: 80.06 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.531e-05/1.318, allocations: 37.78 kB / 0.7878 GB, free: 80.06 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.806e-05/1.318, allocations: 13.34 kB / 0.7878 GB, free: 80.06 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.943e-05/1.318, allocations: 19.17 kB / 0.7878 GB, free: 80.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01741/1.335, allocations: 11.11 MB / 0.7986 GB, free: 78.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/1.335, allocations: 10.62 kB / 0.7987 GB, free: 78.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002541/1.338, allocations: 0.5477 MB / 0.7992 GB, free: 78.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002152/1.34, allocations: 0.8737 MB / 0.8 GB, free: 78.31 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003065/1.34, allocations: 40.08 kB / 0.8001 GB, free: 78.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01242/1.353, allocations: 15.34 MB / 0.8151 GB, free: 66.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.353, allocations: 3.844 kB / 0.8151 GB, free: 66.39 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01024/1.363, allocations: 7.616 MB / 0.8225 GB, free: 62.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001972/1.365, allocations: 0.8393 MB / 0.8233 GB, free: 62.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000685/1.366, allocations: 19.59 kB / 0.8233 GB, free: 62.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002013/1.368, allocations: 107.7 kB / 0.8234 GB, free: 62.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003458/1.368, allocations: 193.1 kB / 0.8236 GB, free: 62.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/1.368, allocations: 100.9 kB / 0.8237 GB, free: 62.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002838/1.371, allocations: 1.893 MB / 0.8256 GB, free: 61.24 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00475/1.376, allocations: 1.173 MB / 0.8267 GB, free: 61.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.0008709/1.377, allocations: 0.5336 MB / 0.8272 GB, free: 61.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006103/1.383, allocations: 4.688 MB / 0.8318 GB, free: 59.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/1.383, allocations: 2.781 kB / 0.8318 GB, free: 59.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004355/1.387, allocations: 2.977 MB / 0.8347 GB, free: 57.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004747/1.392, allocations: 0.7509 MB / 0.8355 GB, free: 57.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02205/1.414, allocations: 10.56 MB / 0.8458 GB, free: 53.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005286/1.419, allocations: 4.752 MB / 0.8504 GB, free: 51.45 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/1.419, allocations: 0 / 0.8504 GB, free: 51.45 MB / 442.7 MB Notification: Performance of Templates: time 0.09198/1.511, allocations: 58.05 MB / 0.9071 GB, free: 20.88 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMPM_Inverter_Polyphase/SMPM_Inverter_Polyphase.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches