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.001058/0.001058, allocations: 178.3 kB / 16.41 MB, free: 5.727 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.871/1.871, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0008521/0.0008521, allocations: 83.53 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003527, allocations: 8 kB / 327 MB, free: 172 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1985, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.02305/0.2216, allocations: 32.68 MB / 407.3 MB, free: 16.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.2373, allocations: 9.298 MB / 416.6 MB, free: 6.754 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005186/0.2425, allocations: 219.2 kB / 416.8 MB, free: 6.539 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005231/0.2478, allocations: 1.849 MB / 418.6 MB, free: 4.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008544/0.2563, allocations: 3.269 MB / 421.9 MB, free: 1.402 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00389/0.2602, allocations: 1.524 MB / 423.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01701/0.2773, allocations: 15.66 MB / 439.1 MB, free: 180 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03403/0.3113, allocations: 20.39 MB / 459.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007952/0.3193, allocations: 5.24 MB / 464.7 MB, free: 6.41 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009191/0.3286, allocations: 5.961 MB / 470.7 MB, free: 436 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002817/0.3314, allocations: 0.8008 MB / 471.5 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005108/0.3365, allocations: 1.16 MB / 472.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003227/0.3398, allocations: 2.565 MB / 475.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004304/0.3441, allocations: 2.652 MB / 477.8 MB, free: 9.227 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02024/0.3644, allocations: 22.65 MB / 0.4888 GB, free: 2.512 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.3644, allocations: 4 kB / 0.4888 GB, free: 2.508 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3644, allocations: 0 / 0.4888 GB, free: 2.508 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006473/0.3651, allocations: 4 kB / 0.4888 GB, free: 2.504 MB / 378.7 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.3019/0.6669, allocations: 13.5 MB / 0.502 GB, free: 89.24 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.667, allocations: 8.25 kB / 0.502 GB, free: 89.24 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03977/0.7068, allocations: 7.386 MB / 0.5092 GB, free: 85.83 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01551/0.7223, allocations: 7.587 MB / 0.5166 GB, free: 78.24 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005286/0.7229, allocations: 0.9161 MB / 0.5175 GB, free: 77.34 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002969/0.7259, allocations: 1.206 MB / 0.5187 GB, free: 76.14 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03816/0.7641, allocations: 19.16 MB / 0.5374 GB, free: 56.92 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003141/0.7644, allocations: 19.8 kB / 0.5374 GB, free: 56.9 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001794/0.7662, allocations: 0.5018 MB / 0.5379 GB, free: 56.41 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005145/0.7667, allocations: 0.6815 MB / 0.5385 GB, free: 55.73 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03143/0.7982, allocations: 17.61 MB / 0.5557 GB, free: 38.1 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1161/0.9143, allocations: 64.05 MB / 0.6183 GB, free: 4.848 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03989/0.9543, allocations: 38.64 MB / 0.656 GB, free: 9.449 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007999/0.9623, allocations: 4.251 MB / 0.6602 GB, free: 5.203 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2466/1.209, allocations: 12.35 MB / 0.6722 GB, free: 151.8 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.422e-05/1.209, allocations: 77.88 kB / 0.6723 GB, free: 151.7 MB / 458.8 MB Notification: Performance of pre-optimization done (n=408): time 6.632e-06/1.209, allocations: 3.938 kB / 0.6723 GB, free: 151.7 MB / 458.8 MB Notification: Performance of matching and sorting (n=418): time 0.04496/1.254, allocations: 21.75 MB / 0.6936 GB, free: 142.5 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.502e-05/1.254, allocations: 124 kB / 0.6937 GB, free: 142.4 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007813/1.262, allocations: 5.259 MB / 0.6988 GB, free: 140.5 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006658/1.263, allocations: 93.17 kB / 0.6989 GB, free: 140.4 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003028/1.266, allocations: 5.495 MB / 0.7043 GB, free: 136.3 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001477/1.267, allocations: 1.454 MB / 0.7057 GB, free: 135.2 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003321/1.268, allocations: 137.5 kB / 0.7058 GB, free: 135.1 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003287/1.268, allocations: 0.5702 MB / 0.7064 GB, free: 134.6 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004649/1.273, allocations: 2.929 MB / 0.7092 GB, free: 132.8 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006044/1.279, allocations: 5.664 MB / 0.7148 GB, free: 126.4 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005314/1.284, allocations: 4.162 MB / 0.7188 GB, free: 122.4 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-05/1.284, allocations: 32 kB / 0.7189 GB, free: 122.4 MB / 458.8 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.0146/1.299, allocations: 10.03 MB / 0.7287 GB, free: 112.2 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.871e-05/1.299, allocations: 44 kB / 0.7287 GB, free: 112.2 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/1.299, allocations: 92 kB / 0.7288 GB, free: 112.1 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002738/1.302, allocations: 1.146 MB / 0.7299 GB, free: 111 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004879/1.306, allocations: 1.533 MB / 0.7314 GB, free: 109.4 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/1.319, allocations: 12.5 MB / 0.7436 GB, free: 96.39 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006358/1.325, allocations: 367.5 kB / 0.744 GB, free: 96.04 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006566/1.326, allocations: 344 kB / 0.7443 GB, free: 95.7 MB / 458.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.007774/1.334, allocations: 4.294 MB / 0.7485 GB, free: 91.39 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/1.335, allocations: 0.5488 MB / 0.749 GB, free: 90.84 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01106/1.346, allocations: 7.191 MB / 0.756 GB, free: 83.54 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005854/1.352, allocations: 4.293 MB / 0.7602 GB, free: 79.2 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.303e-05/1.352, allocations: 12 kB / 0.7602 GB, free: 79.19 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.513e-05/1.352, allocations: 23.88 kB / 0.7603 GB, free: 79.16 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03089/1.383, allocations: 17.15 MB / 0.777 GB, free: 61.88 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.539e-05/1.383, allocations: 8.531 kB / 0.777 GB, free: 61.88 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002781/1.386, allocations: 0.6943 MB / 0.7777 GB, free: 61.18 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002895/1.389, allocations: 1.183 MB / 0.7789 GB, free: 59.98 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002463/1.389, allocations: 99.97 kB / 0.779 GB, free: 59.88 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01497/1.404, allocations: 15.99 MB / 0.7946 GB, free: 43.11 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/1.404, allocations: 4 kB / 0.7946 GB, free: 43.11 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01443/1.419, allocations: 10.41 MB / 0.8047 GB, free: 32.54 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003043/1.422, allocations: 1.154 MB / 0.8059 GB, free: 31.36 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006004/1.422, allocations: 80 kB / 0.8059 GB, free: 31.28 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002283/1.425, allocations: 223.8 kB / 0.8062 GB, free: 31.06 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005957/1.425, allocations: 299.4 kB / 0.8064 GB, free: 30.77 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/1.425, allocations: 128 kB / 0.8066 GB, free: 30.64 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.005209/1.431, allocations: 3.503 MB / 0.81 GB, free: 27.16 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.81e-07/1.431, allocations: 0 / 0.81 GB, free: 27.16 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.007591/1.438, allocations: 1.997 MB / 0.8119 GB, free: 25.17 MB / 458.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.0007012/1.439, allocations: 285.8 kB / 0.8122 GB, free: 24.89 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01136/1.45, allocations: 7.876 MB / 0.8199 GB, free: 16.94 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.45, allocations: 6 kB / 0.8199 GB, free: 16.93 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005567/1.456, allocations: 4.142 MB / 0.8239 GB, free: 12.71 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006678/1.463, allocations: 1.375 MB / 0.8253 GB, free: 11.36 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2827/1.745, allocations: 24.76 MB / 0.8495 GB, free: 135.7 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008221/1.754, allocations: 7.213 MB / 0.8565 GB, free: 134.5 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002246/1.756, allocations: 470.5 kB / 0.857 GB, free: 134.5 MB / 458.8 MB Notification: Performance of SimCode: time 1.002e-06/1.756, allocations: 0 / 0.857 GB, free: 134.5 MB / 458.8 MB Notification: Performance of Templates: time 1.133/2.889, allocations: 0.4978 GB / 1.355 GB, free: 163.3 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