Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 184.3 kB / 8.134 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 221.4 MB / 229.9 MB, free: 3.066 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009756/0.0009757, allocations: 104.3 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.757e-06/8.787e-06, allocations: 0 / 336.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2533, allocations: 50.39 MB / 386.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2779/0.5313, allocations: 118.8 MB / 0.4939 GB, free: 103.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/0.5315, allocations: 102.7 kB / 0.494 GB, free: 103.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.5352/1.067, allocations: 167.5 MB / 0.6576 GB, free: 34.58 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004876/1.067, allocations: 170.4 kB / 0.6577 GB, free: 34.56 MB / 426.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.01789/1.085, allocations: 6.74 MB / 0.6643 GB, free: 32.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/1.085, allocations: 9.5 kB / 0.6643 GB, free: 32.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009391/1.095, allocations: 1.607 MB / 0.6659 GB, free: 32.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/1.108, allocations: 5.975 MB / 0.6717 GB, free: 31.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003011/1.108, allocations: 238.4 kB / 0.672 GB, free: 31.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001757/1.11, allocations: 436.4 kB / 0.6724 GB, free: 31.47 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01435/1.125, allocations: 7.233 MB / 0.6794 GB, free: 31.44 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01693/1.142, allocations: 8.389 MB / 0.6876 GB, free: 30.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001775/1.142, allocations: 12.27 kB / 0.6876 GB, free: 30.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006998/1.142, allocations: 7.625 kB / 0.6877 GB, free: 30.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002108/1.143, allocations: 347.8 kB / 0.688 GB, free: 30.67 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04198/1.185, allocations: 29.4 MB / 0.7167 GB, free: 24.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002868/1.188, allocations: 2.318 MB / 0.719 GB, free: 24.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003871/1.191, allocations: 3.215 MB / 0.7221 GB, free: 24.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01248/1.204, allocations: 8.818 MB / 0.7307 GB, free: 22.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/1.204, allocations: 77.7 kB / 0.7308 GB, free: 22.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=354): time 5.159e-06/1.204, allocations: 0 / 0.7308 GB, free: 22.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=362): time 0.01541/1.219, allocations: 9.547 MB / 0.7401 GB, free: 17.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/1.219, allocations: 92.69 kB / 0.7402 GB, free: 17.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003439/1.223, allocations: 2.541 MB / 0.7427 GB, free: 16.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002271/1.223, allocations: 25.7 kB / 0.7427 GB, free: 16.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000867/1.224, allocations: 2.567 MB / 0.7452 GB, free: 14.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006282/1.225, allocations: 1.178 MB / 0.7464 GB, free: 13.78 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/1.225, allocations: 0 / 0.7464 GB, free: 13.78 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/1.225, allocations: 476.8 kB / 0.7468 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002205/1.227, allocations: 1.648 MB / 0.7484 GB, free: 12.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002426/1.23, allocations: 2.776 MB / 0.7511 GB, free: 10.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003369/1.233, allocations: 2.273 MB / 0.7534 GB, free: 9.652 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.487e-05/1.233, allocations: 13.12 kB / 0.7534 GB, free: 9.652 MB / 426.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.008107/1.241, allocations: 5.27 MB / 0.7585 GB, free: 7.688 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/1.241, allocations: 3.969 kB / 0.7585 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.171e-05/1.241, allocations: 34.75 kB / 0.7585 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008937/1.242, allocations: 393.1 kB / 0.7589 GB, free: 7.551 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004022/1.246, allocations: 0.9855 MB / 0.7599 GB, free: 7.512 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005198/1.251, allocations: 6.983 MB / 0.7667 GB, free: 1.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0038/1.255, allocations: 100.5 kB / 0.7668 GB, free: 1.578 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005457/1.256, allocations: 185.8 kB / 0.767 GB, free: 1.543 MB / 426.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.0009077/1.257, allocations: 215.1 kB / 0.7672 GB, free: 1.406 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009558/1.258, allocations: 382.6 kB / 0.7675 GB, free: 1.207 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009982/1.268, allocations: 4.999 MB / 0.7724 GB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.528e-05/1.268, allocations: 44.88 kB / 0.7725 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/1.268, allocations: 11.72 kB / 0.7725 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.139e-05/1.268, allocations: 16.41 kB / 0.7725 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01842/1.286, allocations: 11.1 MB / 0.7833 GB, free: 6.609 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/1.286, allocations: 4 kB / 0.7833 GB, free: 6.605 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002606/1.289, allocations: 0.5509 MB / 0.7839 GB, free: 6.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002301/1.291, allocations: 0.8799 MB / 0.7847 GB, free: 5.414 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002501/1.292, allocations: 43.45 kB / 0.7848 GB, free: 5.379 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01673/1.308, allocations: 15.33 MB / 0.7997 GB, free: 6.301 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/1.308, allocations: 6.25 kB / 0.7998 GB, free: 6.297 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01477/1.323, allocations: 7.871 MB / 0.8074 GB, free: 15.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002202/1.325, allocations: 0.8401 MB / 0.8083 GB, free: 15.07 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006649/1.326, allocations: 23.84 kB / 0.8083 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002012/1.328, allocations: 101.7 kB / 0.8084 GB, free: 14.97 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000357/1.328, allocations: 197.1 kB / 0.8086 GB, free: 14.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002396/1.329, allocations: 111.3 kB / 0.8087 GB, free: 14.76 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.00305/1.332, allocations: 1.873 MB / 0.8105 GB, free: 13.08 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00403/1.336, allocations: 1.156 MB / 0.8116 GB, free: 11.93 MB / 474.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.0008222/1.337, allocations: 0.5138 MB / 0.8121 GB, free: 11.52 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006649/1.343, allocations: 4.683 MB / 0.8167 GB, free: 7.164 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/1.343, allocations: 0 / 0.8167 GB, free: 7.164 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004447/1.348, allocations: 2.982 MB / 0.8196 GB, free: 4.387 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003764/1.351, allocations: 0.7321 MB / 0.8203 GB, free: 3.812 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1601/1.512, allocations: 10.54 MB / 0.8306 GB, free: 100.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005044/1.517, allocations: 4.736 MB / 0.8353 GB, free: 99.61 MB / 474.7 MB Notification: Performance of SimCode: time 8.41e-07/1.517, allocations: 0 / 0.8353 GB, free: 99.61 MB / 474.7 MB Notification: Performance of Templates: time 0.0891/1.606, allocations: 57.56 MB / 0.8915 GB, free: 97.34 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches