Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001129/0.001129, allocations: 95.62 kB / 16.93 MB, free: 5.984 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.001409/0.00141, allocations: 180.8 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004301, allocations: 8 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07603/0.07647, allocations: 47.58 MB / 328.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03045/0.107, allocations: 29.89 MB / 358.2 MB, free: 6.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01812/0.1251, allocations: 9.638 MB / 367.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005464/0.1306, allocations: 223.2 kB / 368.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006712/0.1374, allocations: 1.994 MB / 370.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01127/0.1487, allocations: 3.443 MB / 373.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005656/0.1543, allocations: 1.547 MB / 375.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1743/0.3286, allocations: 11.28 MB / 386.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03411/0.3628, allocations: 20.18 MB / 406.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007647/0.3705, allocations: 4.857 MB / 411.4 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009251/0.3797, allocations: 5.393 MB / 416.8 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002142/0.3819, allocations: 0.7891 MB / 417.6 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003721/0.3856, allocations: 1.101 MB / 418.7 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001924/0.3876, allocations: 2.477 MB / 421.2 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003525/0.3911, allocations: 2.656 MB / 423.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01873/0.4099, allocations: 22.55 MB / 446.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.4099, allocations: 0 / 446.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4099, allocations: 0 / 446.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005342/0.4104, allocations: 2.156 kB / 446.4 MB, free: 1.207 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.03522/0.4457, allocations: 13.42 MB / 459.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4457, allocations: 8.031 kB / 459.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04096/0.4867, allocations: 7.312 MB / 467.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01662/0.5033, allocations: 7.609 MB / 474.7 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007324/0.5041, allocations: 0.9169 MB / 475.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003282/0.5074, allocations: 1.208 MB / 476.8 MB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03741/0.5448, allocations: 19.05 MB / 495.9 MB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002419/0.5451, allocations: 19.8 kB / 495.9 MB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001396/0.5465, allocations: 0.4988 MB / 496.4 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006181/0.5471, allocations: 0.6815 MB / 497.1 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03195/0.5791, allocations: 17.61 MB / 0.5026 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.395/0.9741, allocations: 63.93 MB / 0.5651 GB, free: 94.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02513/0.9992, allocations: 38.64 MB / 0.6028 GB, free: 58.24 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01833/1.018, allocations: 12.03 MB / 0.6146 GB, free: 50.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/1.018, allocations: 84.78 kB / 0.6146 GB, free: 50.04 MB / 430.1 MB Notification: Performance of pre-optimization done (n=416): time 7.063e-06/1.018, allocations: 3.984 kB / 0.6147 GB, free: 50.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=426): time 0.03453/1.052, allocations: 20.53 MB / 0.6347 GB, free: 37.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/1.052, allocations: 124.7 kB / 0.6348 GB, free: 36.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006572/1.059, allocations: 5.155 MB / 0.6398 GB, free: 31.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006/1.06, allocations: 97.7 kB / 0.6399 GB, free: 31.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002207/1.062, allocations: 5.483 MB / 0.6453 GB, free: 26.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001159/1.063, allocations: 1.473 MB / 0.6467 GB, free: 24.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003915/1.063, allocations: 140 kB / 0.6469 GB, free: 24.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002595/1.064, allocations: 0.5755 MB / 0.6474 GB, free: 23.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003849/1.067, allocations: 2.957 MB / 0.6503 GB, free: 21.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005123/1.073, allocations: 5.665 MB / 0.6559 GB, free: 14.08 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005428/1.078, allocations: 4.192 MB / 0.6599 GB, free: 9.875 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.597e-05/1.078, allocations: 24 kB / 0.66 GB, free: 9.852 MB / 430.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.01533/1.093, allocations: 10.11 MB / 0.6698 GB, free: 15.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/1.094, allocations: 44 kB / 0.6699 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000143/1.094, allocations: 88 kB / 0.67 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003102/1.097, allocations: 1.136 MB / 0.6711 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005932/1.103, allocations: 1.548 MB / 0.6726 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01615/1.119, allocations: 12.74 MB / 0.685 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005319/1.124, allocations: 367.6 kB / 0.6854 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001157/1.125, allocations: 348 kB / 0.6857 GB, free: 14.87 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 411 * 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 (813): * Single equations (assignments): 804 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(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%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008829/1.134, allocations: 4.301 MB / 0.6899 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001826/1.136, allocations: 0.5403 MB / 0.6904 GB, free: 10 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01444/1.151, allocations: 7.284 MB / 0.6976 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1715/1.322, allocations: 4.322 MB / 0.7018 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-05/1.322, allocations: 13.81 kB / 0.7018 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.25e-05/1.322, allocations: 25.27 kB / 0.7018 GB, free: 140.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03007/1.352, allocations: 17.25 MB / 0.7187 GB, free: 136.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.702e-05/1.352, allocations: 6.375 kB / 0.7187 GB, free: 136.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002851/1.355, allocations: 0.7034 MB / 0.7193 GB, free: 136.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00284/1.358, allocations: 1.179 MB / 0.7205 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003153/1.358, allocations: 100.4 kB / 0.7206 GB, free: 135.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01445/1.373, allocations: 16.25 MB / 0.7365 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.373, allocations: 3.969 kB / 0.7365 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01447/1.387, allocations: 11.18 MB / 0.7474 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002732/1.39, allocations: 1.141 MB / 0.7485 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009193/1.391, allocations: 84.91 kB / 0.7486 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002398/1.394, allocations: 220.9 kB / 0.7488 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006007/1.394, allocations: 309.3 kB / 0.7491 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/1.394, allocations: 132.1 kB / 0.7492 GB, free: 118 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00487/1.399, allocations: 3.422 MB / 0.7526 GB, free: 116.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.399, allocations: 0 / 0.7526 GB, free: 116.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006898/1.406, allocations: 1.996 MB / 0.7545 GB, free: 116.4 MB / 462.1 MB 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 (364): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,53.0%) 46,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007261/1.407, allocations: 285.3 kB / 0.7548 GB, free: 116.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01086/1.418, allocations: 7.958 MB / 0.7625 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/1.418, allocations: 0 / 0.7625 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007072/1.425, allocations: 4.166 MB / 0.7666 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006074/1.431, allocations: 1.316 MB / 0.7679 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03447/1.466, allocations: 24.98 MB / 0.7923 GB, free: 79.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007998/1.474, allocations: 7.647 MB / 0.7998 GB, free: 71.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006288/1.48, allocations: 2.101 MB / 0.8018 GB, free: 69.37 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/1.481, allocations: 411.4 kB / 0.8022 GB, free: 68.97 MB / 462.1 MB Notification: Performance of SimCode: time 2.244e-06/1.481, allocations: 0 / 0.8022 GB, free: 68.97 MB / 462.1 MB Notification: Performance of Templates: time 0.2948/1.776, allocations: 79.29 MB / 0.8796 GB, free: 131.5 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches