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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001034/0.001034, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009497/0.0009498, allocations: 86.62 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.441e-05/2.443e-05, allocations: 0 / 350.6 MB, free: 2.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09711, allocations: 51.48 MB / 402 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3866/0.4838, allocations: 132.5 MB / 0.522 GB, free: 5.852 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.4841, allocations: 92.22 kB / 0.5221 GB, free: 5.805 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5718/1.056, allocations: 127.7 MB / 0.6468 GB, free: 77.55 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.855e-06/1.056, allocations: 0 / 0.6468 GB, free: 77.55 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006536/1.057, allocations: 147 kB / 0.647 GB, free: 77.52 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.01825/1.075, allocations: 5.142 MB / 0.652 GB, free: 75.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/1.075, allocations: 11.41 kB / 0.652 GB, free: 75.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006887/1.082, allocations: 1.012 MB / 0.653 GB, free: 74.75 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0135/1.095, allocations: 4.638 MB / 0.6575 GB, free: 72.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00051/1.096, allocations: 398 kB / 0.6579 GB, free: 72.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002217/1.098, allocations: 0.5267 MB / 0.6584 GB, free: 72.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/1.117, allocations: 6.82 MB / 0.6651 GB, free: 68.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003627/1.117, allocations: 14.34 kB / 0.6651 GB, free: 68.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001985/1.119, allocations: 224.4 kB / 0.6653 GB, free: 68.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002521/1.12, allocations: 250.6 kB / 0.6656 GB, free: 68.69 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01599/1.136, allocations: 5.419 MB / 0.6708 GB, free: 66.21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04892/1.185, allocations: 22.69 MB / 0.693 GB, free: 46.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008166/1.193, allocations: 8.54 MB / 0.7013 GB, free: 36.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003847/1.197, allocations: 2.121 MB / 0.7034 GB, free: 34.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/1.21, allocations: 6.568 MB / 0.7098 GB, free: 27.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/1.21, allocations: 56.56 kB / 0.7099 GB, free: 27.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 6.352e-06/1.21, allocations: 4 kB / 0.7099 GB, free: 27.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=254): time 0.02356/1.234, allocations: 10.1 MB / 0.7197 GB, free: 17.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/1.234, allocations: 77.41 kB / 0.7198 GB, free: 17.51 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006311/1.24, allocations: 2.738 MB / 0.7225 GB, free: 14.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006511/1.241, allocations: 73.7 kB / 0.7226 GB, free: 14.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001636/1.243, allocations: 2.496 MB / 0.725 GB, free: 12.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.244, allocations: 0.8681 MB / 0.7258 GB, free: 11.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004676/1.244, allocations: 67.94 kB / 0.7259 GB, free: 11.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002961/1.245, allocations: 436.8 kB / 0.7263 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0029/1.248, allocations: 1.318 MB / 0.7276 GB, free: 9.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003229/1.251, allocations: 2.293 MB / 0.7299 GB, free: 6.777 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002977/1.254, allocations: 1.749 MB / 0.7316 GB, free: 5.008 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.326e-05/1.254, allocations: 8 kB / 0.7316 GB, free: 5 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.008548/1.262, allocations: 4.761 MB / 0.7362 GB, free: 156 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/1.263, allocations: 24.12 kB / 0.7362 GB, free: 132 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.988e-05/1.263, allocations: 28 kB / 0.7363 GB, free: 104 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3119/1.575, allocations: 0.7182 MB / 0.737 GB, free: 71.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003652/1.578, allocations: 0.7504 MB / 0.7377 GB, free: 71.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/1.588, allocations: 9.769 MB / 0.7472 GB, free: 66.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00428/1.593, allocations: 200.8 kB / 0.7474 GB, free: 66.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009544/1.594, allocations: 144 kB / 0.7476 GB, free: 66.07 MB / 442.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 (378): * Single equations (assignments): 372 * 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.001422/1.595, allocations: 309 kB / 0.7479 GB, free: 65.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001335/1.596, allocations: 351.7 kB / 0.7482 GB, free: 65.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00788/1.604, allocations: 4.225 MB / 0.7523 GB, free: 65.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/1.604, allocations: 25.41 kB / 0.7524 GB, free: 65.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-05/1.604, allocations: 9 kB / 0.7524 GB, free: 65.51 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/1.604, allocations: 13.88 kB / 0.7524 GB, free: 65.51 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01888/1.623, allocations: 9.208 MB / 0.7614 GB, free: 64.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/1.623, allocations: 6.078 kB / 0.7614 GB, free: 64.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/1.625, allocations: 413.7 kB / 0.7618 GB, free: 64.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002531/1.628, allocations: 0.9638 MB / 0.7627 GB, free: 64.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002958/1.628, allocations: 66.44 kB / 0.7628 GB, free: 64.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/1.643, allocations: 15.94 MB / 0.7783 GB, free: 55.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.643, allocations: 3.625 kB / 0.7783 GB, free: 55.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/1.654, allocations: 6.379 MB / 0.7846 GB, free: 53.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002898/1.657, allocations: 0.7254 MB / 0.7853 GB, free: 53.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0012/1.658, allocations: 58.05 kB / 0.7853 GB, free: 53.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002168/1.661, allocations: 157.1 kB / 0.7855 GB, free: 53.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006709/1.661, allocations: 196.5 kB / 0.7857 GB, free: 53.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/1.662, allocations: 73.59 kB / 0.7857 GB, free: 53.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004904/1.666, allocations: 2.068 MB / 0.7878 GB, free: 52.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.8e-07/1.666, allocations: 4.781 kB / 0.7878 GB, free: 52.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006176/1.673, allocations: 1.103 MB / 0.7888 GB, free: 52.29 MB / 442.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 (197): * Single equations (assignments): 190 * 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.001242/1.674, allocations: 0.6328 MB / 0.7895 GB, free: 52.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007364/1.681, allocations: 4.147 MB / 0.7935 GB, free: 50.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.608e-05/1.681, allocations: 0 / 0.7935 GB, free: 50.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004868/1.686, allocations: 2.781 MB / 0.7962 GB, free: 48.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004342/1.691, allocations: 0.8851 MB / 0.7971 GB, free: 48.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/1.706, allocations: 8.278 MB / 0.8052 GB, free: 45.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003748/1.71, allocations: 3.53 MB / 0.8086 GB, free: 43.76 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003597/1.714, allocations: 0.8053 MB / 0.8094 GB, free: 43.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009935/1.715, allocations: 239.2 kB / 0.8096 GB, free: 43.64 MB / 442.7 MB Notification: Performance of SimCode: time 2.124e-06/1.715, allocations: 0 / 0.8096 GB, free: 43.64 MB / 442.7 MB Notification: Performance of Templates: time 0.09442/1.809, allocations: 55.12 MB / 0.8635 GB, free: 17.6 MB / 442.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