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.001546/0.001546, allocations: 103.2 kB / 17.59 MB, free: 5.43 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.001889/0.001889, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.416/1.416, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001283, allocations: 46.27 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09357, allocations: 49.44 MB / 350.8 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2616/0.3552, allocations: 37.25 MB / 388 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02584/0.3811, allocations: 10.03 MB / 398 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01108/0.3922, allocations: 272.8 kB / 398.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0222/0.4145, allocations: 9.103 MB / 407.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01543/0.4299, allocations: 3.912 MB / 411.3 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007884/0.4378, allocations: 2.378 MB / 413.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01968/0.4575, allocations: 13.99 MB / 427.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04011/0.4977, allocations: 25.76 MB / 453.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01241/0.5101, allocations: 7.157 MB / 460.6 MB, free: 8.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01337/0.5236, allocations: 7.93 MB / 468.5 MB, free: 176 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006233/0.5298, allocations: 2.027 MB / 470.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008737/0.5386, allocations: 2.425 MB / 473 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006731/0.5454, allocations: 4.033 MB / 477 MB, free: 7.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01529/0.5607, allocations: 7.809 MB / 484.8 MB, free: 15.83 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03382/0.5945, allocations: 26.78 MB / 0.4996 GB, free: 4.977 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.5946, allocations: 4 kB / 0.4996 GB, free: 4.973 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5946, allocations: 0 / 0.4996 GB, free: 4.973 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008042/0.5954, allocations: 0 / 0.4996 GB, free: 4.973 MB / 414.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.04959/0.645, allocations: 15.88 MB / 0.5151 GB, free: 4.969 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.6451, allocations: 12.03 kB / 0.5151 GB, free: 4.957 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3693/1.014, allocations: 6.368 MB / 0.5214 GB, free: 118.2 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01759/1.032, allocations: 8.322 MB / 0.5295 GB, free: 114.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009539/1.033, allocations: 0.9078 MB / 0.5304 GB, free: 114 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004437/1.037, allocations: 1.195 MB / 0.5315 GB, free: 113.6 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04231/1.08, allocations: 18.78 MB / 0.5499 GB, free: 105.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005773/1.08, allocations: 15.12 kB / 0.5499 GB, free: 105.3 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003731/1.084, allocations: 0.4981 MB / 0.5504 GB, free: 104.9 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007587/1.085, allocations: 0.6495 MB / 0.551 GB, free: 104.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03144/1.116, allocations: 17 MB / 0.5676 GB, free: 90.01 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08849/1.205, allocations: 62.6 MB / 0.6287 GB, free: 26.28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02349/1.228, allocations: 29.71 MB / 0.6578 GB, free: 9.105 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007072/1.236, allocations: 4.008 MB / 0.6617 GB, free: 5.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0201/1.256, allocations: 10.12 MB / 0.6716 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.179e-05/1.256, allocations: 81.8 kB / 0.6716 GB, free: 10.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 6.612e-06/1.256, allocations: 0 / 0.6716 GB, free: 10.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.04731/1.303, allocations: 20.11 MB / 0.6913 GB, free: 6.465 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.303, allocations: 120.4 kB / 0.6914 GB, free: 6.324 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008735/1.312, allocations: 5.161 MB / 0.6964 GB, free: 1.172 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007893/1.313, allocations: 89.7 kB / 0.6965 GB, free: 1.078 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1935/1.506, allocations: 5.349 MB / 0.7017 GB, free: 148.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001768/1.508, allocations: 1.427 MB / 0.7031 GB, free: 147.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002542/1.511, allocations: 1.245 MB / 0.7043 GB, free: 147.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.794e-05/1.511, allocations: 306.6 kB / 0.7046 GB, free: 147 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005114/1.516, allocations: 2.846 MB / 0.7074 GB, free: 145.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006893/1.523, allocations: 5.346 MB / 0.7126 GB, free: 141.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/1.534, allocations: 8.732 MB / 0.7212 GB, free: 135.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001525/1.534, allocations: 27.53 kB / 0.7212 GB, free: 135.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01828/1.553, allocations: 9.675 MB / 0.7306 GB, free: 131.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.967e-05/1.553, allocations: 41.47 kB / 0.7307 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001415/1.553, allocations: 78.44 kB / 0.7308 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002896/1.556, allocations: 1.13 MB / 0.7319 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00554/1.561, allocations: 1.443 MB / 0.7333 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01369/1.575, allocations: 13.5 MB / 0.7464 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005937/1.581, allocations: 351.9 kB / 0.7468 GB, free: 121.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001517/1.583, allocations: 321.9 kB / 0.7471 GB, free: 121.3 MB / 478.1 MB 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.007663/1.59, allocations: 4.229 MB / 0.7512 GB, free: 119.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/1.592, allocations: 0.5257 MB / 0.7517 GB, free: 118.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/1.604, allocations: 7.085 MB / 0.7587 GB, free: 115.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006062/1.61, allocations: 4.228 MB / 0.7628 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-05/1.61, allocations: 15.19 kB / 0.7628 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.721e-05/1.61, allocations: 24.86 kB / 0.7628 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02772/1.638, allocations: 16.98 MB / 0.7794 GB, free: 95.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.038e-05/1.638, allocations: 8 kB / 0.7794 GB, free: 95.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003074/1.641, allocations: 0.6871 MB / 0.7801 GB, free: 95.22 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003149/1.644, allocations: 1.189 MB / 0.7812 GB, free: 94.01 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006864/1.645, allocations: 107.9 kB / 0.7813 GB, free: 93.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01547/1.66, allocations: 17.4 MB / 0.7983 GB, free: 75.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.66, allocations: 11.88 kB / 0.7983 GB, free: 75.69 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01469/1.675, allocations: 10.26 MB / 0.8084 GB, free: 65.25 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002902/1.678, allocations: 1.115 MB / 0.8095 GB, free: 64.11 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001196/1.679, allocations: 84 kB / 0.8095 GB, free: 64.03 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002906/1.682, allocations: 215.8 kB / 0.8097 GB, free: 63.82 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000725/1.683, allocations: 307.3 kB / 0.81 GB, free: 63.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00027/1.683, allocations: 124 kB / 0.8101 GB, free: 63.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005002/1.688, allocations: 3.461 MB / 0.8135 GB, free: 59.95 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.8e-07/1.688, allocations: 0 / 0.8135 GB, free: 59.95 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007575/1.696, allocations: 1.958 MB / 0.8154 GB, free: 58 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 (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.0009511/1.697, allocations: 294.6 kB / 0.8157 GB, free: 57.71 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02118/1.718, allocations: 10.82 MB / 0.8263 GB, free: 46.86 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.718, allocations: 4 kB / 0.8263 GB, free: 46.85 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00642/1.724, allocations: 4.095 MB / 0.8303 GB, free: 42.68 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008305/1.733, allocations: 1.426 MB / 0.8317 GB, free: 41.29 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03684/1.769, allocations: 20.24 MB / 0.8515 GB, free: 20.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01127/1.781, allocations: 7.128 MB / 0.8584 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002146/1.783, allocations: 459.3 kB / 0.8589 GB, free: 13.37 MB / 478.1 MB Notification: Performance of SimCode: time 2.164e-06/1.783, allocations: 0 / 0.8589 GB, free: 13.37 MB / 478.1 MB Notification: Performance of Templates: time 1.062/2.845, allocations: 0.4937 GB / 1.353 GB, free: 71.82 MB / 0.4982 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