Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 175.2 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008407/0.0008406, allocations: 77.44 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004127/0.0004127, allocations: 8 kB / 327.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2518, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.02551/0.2773, allocations: 32.82 MB / 407.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01831/0.2957, allocations: 9.298 MB / 417.2 MB, free: 6.477 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006833/0.3026, allocations: 223.2 kB / 417.4 MB, free: 6.258 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006871/0.3095, allocations: 1.837 MB / 419.3 MB, free: 4.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01335/0.3229, allocations: 3.308 MB / 422.6 MB, free: 1.094 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006465/0.3293, allocations: 1.525 MB / 424.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02346/0.3528, allocations: 15.8 MB / 439.9 MB, free: 15.73 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05208/0.4049, allocations: 24.14 MB / 464.1 MB, free: 7.438 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01171/0.4167, allocations: 5.228 MB / 469.3 MB, free: 2.191 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01293/0.4297, allocations: 5.961 MB / 475.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004523/0.4343, allocations: 0.7969 MB / 476 MB, free: 11.41 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007492/0.4418, allocations: 1.183 MB / 477.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005911/0.4478, allocations: 2.561 MB / 479.8 MB, free: 7.656 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01515/0.4629, allocations: 6.034 MB / 485.8 MB, free: 1.59 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4498/0.9128, allocations: 22.65 MB / 0.4966 GB, free: 39.3 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.9129, allocations: 3.25 kB / 0.4966 GB, free: 39.3 MB / 378.8 MB Notification: Performance of FrontEnd: time 4.328e-06/0.9129, allocations: 0 / 0.4966 GB, free: 39.3 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0009292/0.9138, allocations: 0 / 0.4966 GB, free: 39.3 MB / 378.8 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.03981/0.9536, allocations: 13.37 MB / 0.5096 GB, free: 34.74 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.9537, allocations: 11.31 kB / 0.5096 GB, free: 34.74 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04082/0.9945, allocations: 7.394 MB / 0.5168 GB, free: 31.89 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01881/1.013, allocations: 7.706 MB / 0.5244 GB, free: 29.77 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009424/1.014, allocations: 0.921 MB / 0.5253 GB, free: 29.74 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005134/1.02, allocations: 1.208 MB / 0.5265 GB, free: 29.73 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05087/1.07, allocations: 19.16 MB / 0.5452 GB, free: 18.69 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004262/1.071, allocations: 23.45 kB / 0.5452 GB, free: 18.67 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003317/1.074, allocations: 0.5003 MB / 0.5457 GB, free: 18.57 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005848/1.075, allocations: 0.6809 MB / 0.5463 GB, free: 17.93 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03611/1.111, allocations: 17.61 MB / 0.5635 GB, free: 4.98 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1252/1.236, allocations: 64.08 MB / 0.6261 GB, free: 4.367 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0629/1.299, allocations: 38.64 MB / 0.6639 GB, free: 8.988 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01432/1.314, allocations: 4.261 MB / 0.668 GB, free: 4.734 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2484/1.562, allocations: 12.35 MB / 0.6801 GB, free: 184.4 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.265e-05/1.562, allocations: 80.7 kB / 0.6802 GB, free: 184.3 MB / 490.8 MB Notification: Performance of pre-optimization done (n=408): time 6.172e-06/1.562, allocations: 0 / 0.6802 GB, free: 184.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=418): time 0.04281/1.605, allocations: 20.3 MB / 0.7 GB, free: 175.1 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/1.605, allocations: 123.2 kB / 0.7001 GB, free: 175 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008427/1.614, allocations: 5.263 MB / 0.7052 GB, free: 173.1 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009027/1.615, allocations: 93.39 kB / 0.7053 GB, free: 173 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003398/1.618, allocations: 5.486 MB / 0.7107 GB, free: 168.9 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002009/1.62, allocations: 1.451 MB / 0.7121 GB, free: 167.8 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004273/1.62, allocations: 134.8 kB / 0.7122 GB, free: 167.7 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003358/1.621, allocations: 0.582 MB / 0.7128 GB, free: 167.2 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004402/1.625, allocations: 2.929 MB / 0.7157 GB, free: 166.1 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005796/1.631, allocations: 5.662 MB / 0.7212 GB, free: 159.9 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/1.641, allocations: 9.173 MB / 0.7301 GB, free: 150.1 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/1.642, allocations: 28 kB / 0.7302 GB, free: 150.1 MB / 490.8 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01817/1.66, allocations: 10.04 MB / 0.74 GB, free: 141.2 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/1.66, allocations: 44.66 kB / 0.74 GB, free: 141.2 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001765/1.66, allocations: 88 kB / 0.7401 GB, free: 141.1 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003033/1.663, allocations: 1.138 MB / 0.7412 GB, free: 140.2 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005576/1.669, allocations: 1.532 MB / 0.7427 GB, free: 138.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01386/1.683, allocations: 12.5 MB / 0.7549 GB, free: 125.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006231/1.689, allocations: 379.4 kB / 0.7553 GB, free: 125.3 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001344/1.69, allocations: 344 kB / 0.7556 GB, free: 124.9 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (806): * Single equations (assignments): 797 * 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%) 1,(1,100.0%) 5,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008966/1.699, allocations: 4.294 MB / 0.7598 GB, free: 120.6 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00201/1.701, allocations: 0.5403 MB / 0.7603 GB, free: 120.1 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01424/1.716, allocations: 7.18 MB / 0.7673 GB, free: 112.8 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006813/1.722, allocations: 4.289 MB / 0.7715 GB, free: 108.4 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.923e-05/1.723, allocations: 16 kB / 0.7715 GB, free: 108.4 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.572e-05/1.723, allocations: 19.92 kB / 0.7716 GB, free: 108.4 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03374/1.756, allocations: 17.17 MB / 0.7883 GB, free: 91.12 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-05/1.756, allocations: 4 kB / 0.7883 GB, free: 91.11 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003052/1.76, allocations: 0.6869 MB / 0.789 GB, free: 90.43 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003411/1.763, allocations: 1.181 MB / 0.7902 GB, free: 89.23 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009765/1.764, allocations: 99.97 kB / 0.7902 GB, free: 89.13 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01539/1.779, allocations: 16 MB / 0.8059 GB, free: 72.35 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/1.779, allocations: 11.94 kB / 0.8059 GB, free: 72.34 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0173/1.797, allocations: 10.41 MB / 0.8161 GB, free: 61.76 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003673/1.8, allocations: 1.142 MB / 0.8172 GB, free: 60.59 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002176/1.803, allocations: 87.98 kB / 0.8173 GB, free: 60.51 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004089/1.807, allocations: 219.8 kB / 0.8175 GB, free: 60.29 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001137/1.808, allocations: 311.3 kB / 0.8178 GB, free: 59.99 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006589/1.809, allocations: 129 kB / 0.8179 GB, free: 59.86 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006835/1.815, allocations: 3.499 MB / 0.8213 GB, free: 56.38 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.91e-07/1.815, allocations: 0 / 0.8213 GB, free: 56.38 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01043/1.826, allocations: 1.995 MB / 0.8233 GB, free: 54.39 MB / 490.8 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 (356): * Single equations (assignments): 346 * 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%) 1,(1,100.0%) 5,(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.001371/1.827, allocations: 288.6 kB / 0.8235 GB, free: 54.12 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01316/1.841, allocations: 7.881 MB / 0.8312 GB, free: 46.16 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/1.841, allocations: 4.062 kB / 0.8312 GB, free: 46.15 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008414/1.849, allocations: 4.13 MB / 0.8353 GB, free: 41.94 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0196/1.869, allocations: 1.354 MB / 0.8366 GB, free: 40.61 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3287/2.197, allocations: 24.75 MB / 0.8608 GB, free: 167.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0173/2.215, allocations: 7.22 MB / 0.8678 GB, free: 167 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002711/2.218, allocations: 472.4 kB / 0.8683 GB, free: 167 MB / 490.8 MB Notification: Performance of SimCode: time 1.553e-06/2.218, allocations: 3.812 kB / 0.8683 GB, free: 167 MB / 490.8 MB Notification: Performance of Templates: time 1.037/3.254, allocations: 0.4974 GB / 1.366 GB, free: 166.6 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches