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.001378/0.001378, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001549/0.001549, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.258/1.258, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 43.53 kB / 300.2 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.08145, allocations: 49.45 MB / 349.6 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2009/0.2824, allocations: 36.59 MB / 386.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02291/0.3053, allocations: 9.868 MB / 396.1 MB, free: 1.242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007642/0.313, allocations: 261 kB / 396.3 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01944/0.3325, allocations: 8.554 MB / 404.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01289/0.3454, allocations: 3.524 MB / 408.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006842/0.3523, allocations: 2.189 MB / 410.6 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01679/0.3691, allocations: 14.16 MB / 424.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03596/0.4051, allocations: 28.78 MB / 453.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01125/0.4164, allocations: 7.148 MB / 460.7 MB, free: 7.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01141/0.4278, allocations: 7.949 MB / 468.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00436/0.4322, allocations: 2.023 MB / 470.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006588/0.4388, allocations: 2.425 MB / 473.1 MB, free: 10.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00353/0.4424, allocations: 4.037 MB / 477.1 MB, free: 6.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01278/0.4552, allocations: 7.813 MB / 484.9 MB, free: 14.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02694/0.4821, allocations: 26.76 MB / 0.4997 GB, free: 3.973 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4822, allocations: 0 / 0.4997 GB, free: 3.973 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4822, allocations: 0 / 0.4997 GB, free: 3.973 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005337/0.4827, allocations: 3.938 kB / 0.4997 GB, free: 3.969 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.04178/0.5245, allocations: 15.9 MB / 0.5152 GB, free: 3.941 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.5246, allocations: 8.031 kB / 0.5152 GB, free: 3.934 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4513/0.9759, allocations: 6.363 MB / 0.5214 GB, free: 118.2 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02812/1.004, allocations: 8.286 MB / 0.5295 GB, free: 114.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00162/1.006, allocations: 0.905 MB / 0.5304 GB, free: 114.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00609/1.012, allocations: 1.203 MB / 0.5316 GB, free: 113.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06167/1.074, allocations: 18.78 MB / 0.5499 GB, free: 105 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006671/1.074, allocations: 19.34 kB / 0.55 GB, free: 105 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004127/1.078, allocations: 0.4926 MB / 0.5504 GB, free: 104.6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00083/1.079, allocations: 0.6548 MB / 0.5511 GB, free: 104.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0311/1.11, allocations: 17.01 MB / 0.5677 GB, free: 89.02 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07817/1.189, allocations: 62.62 MB / 0.6288 GB, free: 25.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02123/1.21, allocations: 29.75 MB / 0.6579 GB, free: 8.055 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006596/1.216, allocations: 4.059 MB / 0.6619 GB, free: 3.988 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/1.233, allocations: 10.21 MB / 0.6718 GB, free: 9.801 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.576e-05/1.233, allocations: 77.75 kB / 0.6719 GB, free: 9.715 MB / 462.1 MB Notification: Performance of pre-optimization done (n=408): time 5.901e-06/1.233, allocations: 0 / 0.6719 GB, free: 9.715 MB / 462.1 MB Notification: Performance of matching and sorting (n=418): time 0.04361/1.277, allocations: 20.37 MB / 0.6918 GB, free: 5.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/1.277, allocations: 120.4 kB / 0.6919 GB, free: 4.879 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1866/1.464, allocations: 5.152 MB / 0.6969 GB, free: 148.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007137/1.464, allocations: 93.2 kB / 0.697 GB, free: 148.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003317/1.468, allocations: 5.35 MB / 0.7023 GB, free: 146.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/1.469, allocations: 1.445 MB / 0.7037 GB, free: 145.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001942/1.471, allocations: 1.246 MB / 0.7049 GB, free: 145.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.536e-05/1.471, allocations: 304 kB / 0.7052 GB, free: 144.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004256/1.475, allocations: 2.887 MB / 0.708 GB, free: 143.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005713/1.481, allocations: 5.386 MB / 0.7133 GB, free: 139.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009626/1.491, allocations: 8.808 MB / 0.7219 GB, free: 133.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.77e-05/1.491, allocations: 22.59 kB / 0.7219 GB, free: 133.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01403/1.505, allocations: 9.763 MB / 0.7314 GB, free: 129.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.799e-05/1.505, allocations: 42.84 kB / 0.7314 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/1.505, allocations: 82 kB / 0.7315 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002902/1.508, allocations: 1.126 MB / 0.7326 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004931/1.513, allocations: 1.45 MB / 0.734 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/1.526, allocations: 13.47 MB / 0.7472 GB, free: 119.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005264/1.531, allocations: 358.6 kB / 0.7475 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009055/1.532, allocations: 322.8 kB / 0.7478 GB, free: 119 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 (767): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.005673/1.538, allocations: 4.235 MB / 0.752 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/1.539, allocations: 0.5309 MB / 0.7525 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01062/1.549, allocations: 7.164 MB / 0.7595 GB, free: 113.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005574/1.555, allocations: 4.305 MB / 0.7637 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.592e-05/1.555, allocations: 16 kB / 0.7637 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.679e-05/1.555, allocations: 23.88 kB / 0.7637 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0221/1.577, allocations: 17.08 MB / 0.7804 GB, free: 93.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/1.577, allocations: 7.984 kB / 0.7804 GB, free: 93.72 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002826/1.58, allocations: 0.6749 MB / 0.7811 GB, free: 93.05 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003015/1.583, allocations: 1.209 MB / 0.7823 GB, free: 91.82 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000349/1.583, allocations: 99.97 kB / 0.7824 GB, free: 91.72 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/1.598, allocations: 17.41 MB / 0.7994 GB, free: 73.51 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.598, allocations: 15.92 kB / 0.7994 GB, free: 73.49 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01311/1.611, allocations: 10.39 MB / 0.8095 GB, free: 62.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002321/1.614, allocations: 1.119 MB / 0.8106 GB, free: 61.78 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007637/1.614, allocations: 84 kB / 0.8107 GB, free: 61.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002387/1.617, allocations: 215.8 kB / 0.8109 GB, free: 61.49 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006359/1.617, allocations: 307.3 kB / 0.8112 GB, free: 61.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000264/1.618, allocations: 128 kB / 0.8113 GB, free: 61.06 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004123/1.622, allocations: 3.465 MB / 0.8147 GB, free: 57.61 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.622, allocations: 0 / 0.8147 GB, free: 57.61 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005693/1.627, allocations: 1.955 MB / 0.8166 GB, free: 55.66 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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,48.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.0005703/1.628, allocations: 287.9 kB / 0.8169 GB, free: 55.39 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02/1.648, allocations: 11.05 MB / 0.8277 GB, free: 44.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.648, allocations: 4 kB / 0.8277 GB, free: 44.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005615/1.654, allocations: 4.156 MB / 0.8317 GB, free: 40.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006362/1.66, allocations: 1.435 MB / 0.8332 GB, free: 38.68 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0328/1.693, allocations: 25.65 MB / 0.8582 GB, free: 12.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006979/1.7, allocations: 7.364 MB / 0.8654 GB, free: 5.555 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005762/1.706, allocations: 1.997 MB / 0.8673 GB, free: 3.551 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/1.707, allocations: 403.4 kB / 0.8677 GB, free: 3.156 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/1.707, allocations: 0 / 0.8677 GB, free: 3.156 MB / 478.1 MB Notification: Performance of Templates: time 0.3096/2.016, allocations: 85.38 MB / 0.9511 GB, free: 82.59 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","/var/lib/jenkins/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