Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.00131, allocations: 111.9 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 181.5 kB / 18.66 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009731/0.0009731, allocations: 47.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2571, allocations: 49.44 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03799/0.2951, allocations: 37.26 MB / 438.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02273/0.3179, allocations: 10.02 MB / 448.7 MB, free: 9.395 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00779/0.3258, allocations: 267.2 kB / 449 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02196/0.3478, allocations: 9.106 MB / 458.1 MB, free: 4 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0147/0.3625, allocations: 3.911 MB / 462 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008194/0.3708, allocations: 2.375 MB / 464.4 MB, free: 9.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02026/0.391, allocations: 14.1 MB / 478.5 MB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0459/0.437, allocations: 25.62 MB / 0.4923 GB, free: 1.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01375/0.4508, allocations: 7.2 MB / 0.4993 GB, free: 10.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01383/0.4647, allocations: 7.899 MB / 0.507 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005969/0.4707, allocations: 2.027 MB / 0.509 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008404/0.4791, allocations: 2.425 MB / 0.5114 GB, free: 14.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006601/0.4858, allocations: 4.029 MB / 0.5153 GB, free: 10.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01479/0.5006, allocations: 7.809 MB / 0.5229 GB, free: 2.293 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4597/0.9603, allocations: 26.94 MB / 0.5492 GB, free: 58.37 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.9603, allocations: 0 / 0.5492 GB, free: 58.37 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.9604, allocations: 0 / 0.5492 GB, free: 58.37 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008226/0.9612, allocations: 0 / 0.5492 GB, free: 58.37 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04845/1.01, allocations: 15.83 MB / 0.5647 GB, free: 54.18 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/1.01, allocations: 7 kB / 0.5647 GB, free: 54.18 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03475/1.044, allocations: 6.413 MB / 0.571 GB, free: 51.71 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01781/1.062, allocations: 8.559 MB / 0.5793 GB, free: 49.07 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007792/1.063, allocations: 0.901 MB / 0.5802 GB, free: 48.66 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005688/1.069, allocations: 1.187 MB / 0.5814 GB, free: 48.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04581/1.115, allocations: 18.77 MB / 0.5997 GB, free: 31.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005558/1.115, allocations: 23.17 kB / 0.5997 GB, free: 31.67 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004683/1.12, allocations: 0.4937 MB / 0.6002 GB, free: 31.19 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005459/1.121, allocations: 0.6537 MB / 0.6008 GB, free: 30.53 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03144/1.152, allocations: 17 MB / 0.6174 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1024/1.254, allocations: 61.87 MB / 0.6779 GB, free: 15.17 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02737/1.282, allocations: 29.71 MB / 0.7069 GB, free: 14.01 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006596/1.289, allocations: 4.001 MB / 0.7108 GB, free: 10.01 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01775/1.306, allocations: 10.07 MB / 0.7206 GB, free: 15.99 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.478e-05/1.306, allocations: 85.78 kB / 0.7207 GB, free: 15.89 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 6.162e-06/1.306, allocations: 4 kB / 0.7207 GB, free: 15.89 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.04393/1.35, allocations: 20.11 MB / 0.7403 GB, free: 11.52 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/1.35, allocations: 123.9 kB / 0.7405 GB, free: 11.39 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008686/1.359, allocations: 5.161 MB / 0.7455 GB, free: 6.234 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007748/1.36, allocations: 89.7 kB / 0.7456 GB, free: 6.141 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003588/1.364, allocations: 5.349 MB / 0.7508 GB, free: 0.7578 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.2374/1.601, allocations: 1.423 MB / 0.7522 GB, free: 223.1 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002406/1.603, allocations: 1.243 MB / 0.7534 GB, free: 223 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.807e-05/1.604, allocations: 306.3 kB / 0.7537 GB, free: 222.8 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003797/1.607, allocations: 2.846 MB / 0.7565 GB, free: 222.7 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004472/1.612, allocations: 5.347 MB / 0.7617 GB, free: 218.9 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008837/1.621, allocations: 8.73 MB / 0.7702 GB, free: 212.7 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-05/1.621, allocations: 23.53 kB / 0.7702 GB, free: 212.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01495/1.636, allocations: 9.675 MB / 0.7797 GB, free: 208.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.008e-05/1.636, allocations: 45.59 kB / 0.7797 GB, free: 208.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001281/1.636, allocations: 79 kB / 0.7798 GB, free: 208.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002563/1.639, allocations: 1.117 MB / 0.7809 GB, free: 208.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004706/1.643, allocations: 1.452 MB / 0.7823 GB, free: 208.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01294/1.656, allocations: 13.47 MB / 0.7955 GB, free: 198.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005319/1.662, allocations: 352.3 kB / 0.7958 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009905/1.663, allocations: 323.3 kB / 0.7961 GB, free: 198.3 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006899/1.669, allocations: 4.232 MB / 0.8003 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/1.671, allocations: 0.5303 MB / 0.8008 GB, free: 194.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01045/1.681, allocations: 7.074 MB / 0.8077 GB, free: 188.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00538/1.687, allocations: 4.226 MB / 0.8118 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.585e-05/1.687, allocations: 16 kB / 0.8118 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.327e-05/1.687, allocations: 19.25 kB / 0.8118 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02455/1.711, allocations: 16.95 MB / 0.8284 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/1.711, allocations: 4 kB / 0.8284 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002651/1.714, allocations: 0.691 MB / 0.8291 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002807/1.717, allocations: 1.189 MB / 0.8302 GB, free: 167.7 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003501/1.717, allocations: 104 kB / 0.8303 GB, free: 167.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/1.732, allocations: 17.37 MB / 0.8473 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/1.732, allocations: 12.02 kB / 0.8473 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.745, allocations: 10.29 MB / 0.8574 GB, free: 139 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002531/1.748, allocations: 1.115 MB / 0.8584 GB, free: 137.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009241/1.748, allocations: 83.28 kB / 0.8585 GB, free: 137.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002431/1.751, allocations: 211.8 kB / 0.8587 GB, free: 137.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007043/1.752, allocations: 307.3 kB / 0.859 GB, free: 137.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000248/1.752, allocations: 124 kB / 0.8591 GB, free: 137.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004839/1.757, allocations: 3.457 MB / 0.8625 GB, free: 133.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.7e-07/1.757, allocations: 4 kB / 0.8625 GB, free: 133.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.00721/1.764, allocations: 1.959 MB / 0.8644 GB, free: 131.8 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007852/1.765, allocations: 299 kB / 0.8647 GB, free: 131.5 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01039/1.775, allocations: 7.696 MB / 0.8722 GB, free: 123.7 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/1.775, allocations: 0 / 0.8722 GB, free: 123.7 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00555/1.781, allocations: 4.09 MB / 0.8762 GB, free: 119.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00665/1.787, allocations: 1.425 MB / 0.8776 GB, free: 118.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03348/1.821, allocations: 19.98 MB / 0.8971 GB, free: 98.11 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007513/1.829, allocations: 7.124 MB / 0.9041 GB, free: 90.95 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002185/1.831, allocations: 459.3 kB / 0.9045 GB, free: 90.5 MB / 0.5763 GB Notification: Performance of SimCode: time 1.372e-06/1.831, allocations: 0 / 0.9045 GB, free: 90.5 MB / 0.5763 GB Notification: Performance of Templates: time 1.127/2.958, allocations: 0.4961 GB / 1.401 GB, free: 194 MB / 0.5763 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches