Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 176.3 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008035/0.0008035, allocations: 101.9 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002784, allocations: 11.94 kB / 352.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2165, allocations: 50.4 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.298/0.5146, allocations: 131.8 MB / 0.522 GB, free: 94.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.5148, allocations: 98.47 kB / 0.5221 GB, free: 94.08 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2632/0.778, allocations: 124.2 MB / 0.6434 GB, free: 1.383 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.778, allocations: 4 kB / 0.6434 GB, free: 1.379 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004277/0.7785, allocations: 143.8 kB / 0.6436 GB, free: 1.238 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01417/0.7927, allocations: 5.597 MB / 0.649 GB, free: 11.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.7927, allocations: 12.03 kB / 0.649 GB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00462/0.7973, allocations: 1.009 MB / 0.65 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008332/0.8057, allocations: 4.073 MB / 0.654 GB, free: 6.383 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002671/0.806, allocations: 403.1 kB / 0.6544 GB, free: 5.988 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007791/0.8068, allocations: 0.5275 MB / 0.6549 GB, free: 5.461 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2057/1.013, allocations: 7.003 MB / 0.6617 GB, free: 43.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001575/1.013, allocations: 11.28 kB / 0.6617 GB, free: 43.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005316/1.013, allocations: 223.7 kB / 0.662 GB, free: 43.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002722/1.014, allocations: 253 kB / 0.6622 GB, free: 43.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00917/1.023, allocations: 5.633 MB / 0.6677 GB, free: 43.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02806/1.051, allocations: 22.55 MB / 0.6897 GB, free: 38.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006175/1.057, allocations: 8.408 MB / 0.6979 GB, free: 33.19 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002644/1.06, allocations: 2.195 MB / 0.7001 GB, free: 33.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008851/1.069, allocations: 6.345 MB / 0.7063 GB, free: 32.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/1.069, allocations: 63.53 kB / 0.7063 GB, free: 32.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=229): time 3.777e-06/1.069, allocations: 0 / 0.7063 GB, free: 32.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.02167/1.09, allocations: 12.71 MB / 0.7187 GB, free: 28.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/1.09, allocations: 79.8 kB / 0.7188 GB, free: 28.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003715/1.094, allocations: 3.121 MB / 0.7219 GB, free: 27.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/1.094, allocations: 68.89 kB / 0.7219 GB, free: 27.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/1.095, allocations: 2.483 MB / 0.7244 GB, free: 25.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005098/1.096, allocations: 0.8827 MB / 0.7252 GB, free: 24.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/1.096, allocations: 66.34 kB / 0.7253 GB, free: 24.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/1.096, allocations: 433.7 kB / 0.7257 GB, free: 24.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001897/1.098, allocations: 1.407 MB / 0.7271 GB, free: 23.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002456/1.101, allocations: 2.395 MB / 0.7294 GB, free: 22.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004652/1.105, allocations: 4.058 MB / 0.7334 GB, free: 19.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.756e-05/1.105, allocations: 7.594 kB / 0.7334 GB, free: 19.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.007002/1.112, allocations: 4.94 MB / 0.7382 GB, free: 17.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/1.112, allocations: 18.97 kB / 0.7382 GB, free: 17.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.352e-05/1.112, allocations: 31.12 kB / 0.7383 GB, free: 17.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/1.114, allocations: 0.724 MB / 0.739 GB, free: 17.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00241/1.116, allocations: 0.7571 MB / 0.7397 GB, free: 17.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007623/1.124, allocations: 9.797 MB / 0.7493 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002613/1.127, allocations: 198.3 kB / 0.7495 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/1.127, allocations: 141.9 kB / 0.7496 GB, free: 10.41 MB / 426.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (380): * Single equations (assignments): 374 * 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,75.0%) 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.002983/1.13, allocations: 1.584 MB / 0.7511 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005224/1.13, allocations: 354.5 kB / 0.7515 GB, free: 9.422 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006188/1.136, allocations: 4.383 MB / 0.7558 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/1.137, allocations: 25.31 kB / 0.7558 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/1.137, allocations: 13.66 kB / 0.7558 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.078e-05/1.137, allocations: 13.64 kB / 0.7558 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/1.149, allocations: 9.375 MB / 0.765 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/1.149, allocations: 7.234 kB / 0.765 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/1.151, allocations: 413.6 kB / 0.7654 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/1.153, allocations: 0.9653 MB / 0.7663 GB, free: 3.277 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/1.153, allocations: 72.38 kB / 0.7664 GB, free: 3.238 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01383/1.167, allocations: 16.02 MB / 0.782 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.167, allocations: 7.062 kB / 0.782 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009347/1.176, allocations: 6.25 MB / 0.7881 GB, free: 2.562 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/1.178, allocations: 0.726 MB / 0.7888 GB, free: 1.895 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005239/1.179, allocations: 59.64 kB / 0.7889 GB, free: 1.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/1.18, allocations: 165.8 kB / 0.7891 GB, free: 1.715 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004388/1.181, allocations: 187.8 kB / 0.7892 GB, free: 1.602 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/1.181, allocations: 75.03 kB / 0.7893 GB, free: 1.535 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003148/1.184, allocations: 2.094 MB / 0.7914 GB, free: 15.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.184, allocations: 10.78 kB / 0.7914 GB, free: 15.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003454/1.188, allocations: 1.092 MB / 0.7924 GB, free: 14.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 192 * 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.0008368/1.188, allocations: 0.534 MB / 0.7929 GB, free: 14.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006356/1.195, allocations: 4.327 MB / 0.7972 GB, free: 10.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.195, allocations: 4 kB / 0.7972 GB, free: 10.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00428/1.199, allocations: 2.874 MB / 0.8 GB, free: 7.648 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006166/1.205, allocations: 0.8976 MB / 0.8009 GB, free: 6.941 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02595/1.231, allocations: 12.57 MB / 0.8131 GB, free: 12.91 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004912/1.236, allocations: 3.431 MB / 0.8165 GB, free: 10.25 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003597/1.24, allocations: 0.8026 MB / 0.8173 GB, free: 9.691 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009772/1.241, allocations: 245.1 kB / 0.8175 GB, free: 9.465 MB / 474.7 MB Notification: Performance of SimCode: time 5.92e-07/1.241, allocations: 4 kB / 0.8175 GB, free: 9.461 MB / 474.7 MB Notification: Performance of Templates: time 0.3006/1.541, allocations: 54.76 MB / 0.871 GB, free: 79.2 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches