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.001166/0.00117, allocations: 90.7 kB / 16.31 MB, free: 5.672 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.001421/0.001421, allocations: 183 kB / 17.2 MB, free: 5.602 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.264/1.264, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002471/0.0002472, allocations: 6.344 kB / 300.7 MB, free: 6.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1016, allocations: 50.42 MB / 351.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03146/0.1331, allocations: 29.84 MB / 381 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01941/0.1526, allocations: 9.648 MB / 390.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005543/0.1582, allocations: 231.2 kB / 390.9 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00656/0.1647, allocations: 1.99 MB / 392.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01274/0.1775, allocations: 3.413 MB / 396.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006277/0.1838, allocations: 1.544 MB / 397.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01755/0.2014, allocations: 11.19 MB / 409 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2084/0.4097, allocations: 20.17 MB / 429.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00759/0.4174, allocations: 4.811 MB / 434 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009336/0.4267, allocations: 5.267 MB / 439.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003283/0.43, allocations: 0.7868 MB / 440.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005606/0.4357, allocations: 1.101 MB / 441.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003435/0.4391, allocations: 2.414 MB / 443.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004566/0.4437, allocations: 2.628 MB / 446.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02098/0.4647, allocations: 22.68 MB / 468.9 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.4647, allocations: 0 / 468.9 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.4647, allocations: 64 / 468.9 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006668/0.4654, allocations: 0 / 468.9 MB, free: 0 / 350.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.03688/0.5023, allocations: 13.29 MB / 482.2 MB, free: 9.344 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.5024, allocations: 8.625 kB / 482.2 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03662/0.539, allocations: 6.314 MB / 488.5 MB, free: 4.426 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02348/0.5625, allocations: 8.217 MB / 496.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001112/0.5637, allocations: 0.899 MB / 497.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005149/0.5689, allocations: 1.191 MB / 498.8 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05618/0.6251, allocations: 18.59 MB / 0.5053 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006443/0.6258, allocations: 23.8 kB / 0.5053 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004081/0.6299, allocations: 0.4926 MB / 0.5058 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008328/0.6307, allocations: 0.6537 MB / 0.5064 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03877/0.6695, allocations: 16.93 MB / 0.5229 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1069/0.7764, allocations: 62.67 MB / 0.5841 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2207/0.9971, allocations: 29.69 MB / 0.6131 GB, free: 109.6 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01872/1.016, allocations: 9.861 MB / 0.6228 GB, free: 107.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.041e-05/1.016, allocations: 85.16 kB / 0.6228 GB, free: 107.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=416): time 6.502e-06/1.016, allocations: 0 / 0.6228 GB, free: 107.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=426): time 0.03906/1.055, allocations: 20.56 MB / 0.6429 GB, free: 97.88 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/1.055, allocations: 120 kB / 0.643 GB, free: 97.78 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006408/1.062, allocations: 5.011 MB / 0.6479 GB, free: 95.92 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006352/1.062, allocations: 97.23 kB / 0.648 GB, free: 95.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002491/1.065, allocations: 5.329 MB / 0.6532 GB, free: 91.82 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/1.066, allocations: 1.48 MB / 0.6547 GB, free: 90.69 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000341/1.066, allocations: 134.2 kB / 0.6548 GB, free: 90.59 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000292/1.067, allocations: 0.5612 MB / 0.6553 GB, free: 90.17 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004048/1.071, allocations: 2.906 MB / 0.6582 GB, free: 89.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005104/1.076, allocations: 5.368 MB / 0.6634 GB, free: 84.67 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00572/1.082, allocations: 4.071 MB / 0.6674 GB, free: 81.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.057e-05/1.082, allocations: 28 kB / 0.6674 GB, free: 81.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=841) (initialization): time 0.01496/1.097, allocations: 9.78 MB / 0.677 GB, free: 71.81 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.655e-05/1.097, allocations: 40.66 kB / 0.677 GB, free: 71.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/1.097, allocations: 84 kB / 0.6771 GB, free: 71.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002665/1.1, allocations: 1.13 MB / 0.6782 GB, free: 70.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005324/1.105, allocations: 1.466 MB / 0.6796 GB, free: 69.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01258/1.118, allocations: 12.73 MB / 0.6921 GB, free: 55.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005214/1.123, allocations: 355.6 kB / 0.6924 GB, free: 55.47 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/1.124, allocations: 324 kB / 0.6927 GB, free: 55.15 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * 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 (774): * Single equations (assignments): 765 * 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,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007188/1.131, allocations: 4.239 MB / 0.6969 GB, free: 50.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001233/1.132, allocations: 0.5286 MB / 0.6974 GB, free: 50.36 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01119/1.144, allocations: 7.258 MB / 0.7045 GB, free: 43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005967/1.15, allocations: 4.325 MB / 0.7087 GB, free: 38.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.788e-05/1.15, allocations: 16 kB / 0.7087 GB, free: 38.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.723e-05/1.15, allocations: 19.92 kB / 0.7087 GB, free: 38.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0275/1.177, allocations: 17.17 MB / 0.7255 GB, free: 21.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/1.177, allocations: 4 kB / 0.7255 GB, free: 21.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002999/1.18, allocations: 0.7143 MB / 0.7262 GB, free: 20.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002954/1.183, allocations: 1.164 MB / 0.7273 GB, free: 19.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004068/1.184, allocations: 104 kB / 0.7274 GB, free: 19.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/1.198, allocations: 16.28 MB / 0.7433 GB, free: 2.227 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/1.198, allocations: 4 kB / 0.7433 GB, free: 2.223 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/1.215, allocations: 11.15 MB / 0.7542 GB, free: 6.801 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003103/1.218, allocations: 1.127 MB / 0.7553 GB, free: 5.648 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001107/1.219, allocations: 89.3 kB / 0.7554 GB, free: 5.562 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002604/1.221, allocations: 215.8 kB / 0.7556 GB, free: 5.352 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006609/1.222, allocations: 311.4 kB / 0.7559 GB, free: 5.043 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002854/1.222, allocations: 124 kB / 0.756 GB, free: 4.922 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005563/1.228, allocations: 3.343 MB / 0.7593 GB, free: 1.594 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.228, allocations: 0 / 0.7593 GB, free: 1.594 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.1936/1.422, allocations: 1.962 MB / 0.7612 GB, free: 134.5 MB / 478.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,52.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.001271/1.423, allocations: 291.4 kB / 0.7615 GB, free: 134.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01358/1.437, allocations: 7.824 MB / 0.7691 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/1.437, allocations: 1.031 kB / 0.7691 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007324/1.444, allocations: 4.162 MB / 0.7732 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00639/1.45, allocations: 1.303 MB / 0.7745 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03211/1.483, allocations: 24.64 MB / 0.7985 GB, free: 121.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01065/1.493, allocations: 7.567 MB / 0.8059 GB, free: 119 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006497/1.5, allocations: 2.007 MB / 0.8079 GB, free: 118.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/1.501, allocations: 402.9 kB / 0.8083 GB, free: 118.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.202e-06/1.501, allocations: 0 / 0.8083 GB, free: 118.7 MB / 478.1 MB Notification: Performance of Templates: time 0.1161/1.617, allocations: 78.54 MB / 0.885 GB, free: 50.15 MB / 478.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","../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