Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001171/0.001172, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 55.91 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2511, allocations: 50.54 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03852/0.2897, allocations: 37.89 MB / 447.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02177/0.3115, allocations: 10.3 MB / 457.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00659/0.3181, allocations: 271.1 kB / 457.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02086/0.339, allocations: 9.116 MB / 466.9 MB, free: 7.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0127/0.3517, allocations: 3.911 MB / 470.8 MB, free: 3.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007035/0.3588, allocations: 2.427 MB / 473.2 MB, free: 1.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01839/0.3772, allocations: 14.23 MB / 487.4 MB, free: 3.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0326/0.4098, allocations: 25.61 MB / 0.501 GB, free: 9.359 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009596/0.4194, allocations: 7.227 MB / 0.5081 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01102/0.4305, allocations: 8.051 MB / 0.5159 GB, free: 10.04 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003682/0.4342, allocations: 2.027 MB / 0.5179 GB, free: 8.008 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005329/0.4395, allocations: 2.449 MB / 0.5203 GB, free: 5.559 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003612/0.4432, allocations: 4.029 MB / 0.5242 GB, free: 1.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009816/0.453, allocations: 7.825 MB / 0.5319 GB, free: 9.66 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2318/0.6848, allocations: 26.98 MB / 0.5582 GB, free: 56.92 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.6849, allocations: 0 / 0.5582 GB, free: 56.92 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.6849, allocations: 3.281 kB / 0.5582 GB, free: 56.92 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006815/0.6856, allocations: 0 / 0.5582 GB, free: 56.92 MB / 462.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.05017/0.7357, allocations: 15.89 MB / 0.5737 GB, free: 50.04 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.7358, allocations: 9.5 kB / 0.5738 GB, free: 50.04 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03602/0.7718, allocations: 6.457 MB / 0.5801 GB, free: 47.56 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01901/0.7909, allocations: 8.595 MB / 0.5885 GB, free: 43.05 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005888/0.7915, allocations: 0.9041 MB / 0.5893 GB, free: 42.65 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004263/0.7958, allocations: 1.195 MB / 0.5905 GB, free: 42.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03711/0.8329, allocations: 18.75 MB / 0.6088 GB, free: 24.43 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003031/0.8333, allocations: 23.8 kB / 0.6088 GB, free: 24.41 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001881/0.8351, allocations: 0.4961 MB / 0.6093 GB, free: 23.93 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004283/0.8356, allocations: 0.6537 MB / 0.61 GB, free: 23.27 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02706/0.8626, allocations: 17 MB / 0.6266 GB, free: 6.266 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1013/0.964, allocations: 63.19 MB / 0.6883 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02836/0.9924, allocations: 30.01 MB / 0.7176 GB, free: 4.797 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006242/0.9987, allocations: 4.031 MB / 0.7215 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01933/1.018, allocations: 10.36 MB / 0.7316 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.538e-05/1.018, allocations: 73.8 kB / 0.7317 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=402): time 5.7e-06/1.018, allocations: 4 kB / 0.7317 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of matching and sorting (n=412): time 0.0425/1.061, allocations: 20.12 MB / 0.7514 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/1.061, allocations: 120.3 kB / 0.7515 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.223/1.284, allocations: 5.184 MB / 0.7565 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0006638/1.284, allocations: 92.05 kB / 0.7566 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002297/1.287, allocations: 5.368 MB / 0.7619 GB, free: 214.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001002/1.288, allocations: 1.426 MB / 0.7633 GB, free: 213.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001593/1.289, allocations: 1.239 MB / 0.7645 GB, free: 213.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.284e-05/1.289, allocations: 303.1 kB / 0.7648 GB, free: 212.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003466/1.293, allocations: 2.849 MB / 0.7675 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004378/1.297, allocations: 5.353 MB / 0.7728 GB, free: 207.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008657/1.306, allocations: 8.727 MB / 0.7813 GB, free: 201.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.435e-05/1.306, allocations: 26.25 kB / 0.7813 GB, free: 201.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01412/1.32, allocations: 9.686 MB / 0.7908 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/1.32, allocations: 41.56 kB / 0.7908 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/1.32, allocations: 82.06 kB / 0.7909 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002667/1.323, allocations: 1.117 MB / 0.792 GB, free: 197 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00534/1.328, allocations: 1.448 MB / 0.7934 GB, free: 196.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/1.342, allocations: 13.48 MB / 0.8066 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005173/1.347, allocations: 360.8 kB / 0.8069 GB, free: 183.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007713/1.348, allocations: 323.4 kB / 0.8072 GB, free: 183.1 MB / 0.5762 GB 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.005694/1.353, allocations: 4.231 MB / 0.8113 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001014/1.354, allocations: 0.5361 MB / 0.8119 GB, free: 178.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01017/1.365, allocations: 7.09 MB / 0.8188 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005425/1.37, allocations: 4.224 MB / 0.8229 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.242e-05/1.37, allocations: 12 kB / 0.8229 GB, free: 169.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.271e-05/1.37, allocations: 31.56 kB / 0.823 GB, free: 169.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02673/1.397, allocations: 16.96 MB / 0.8395 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/1.397, allocations: 4 kB / 0.8395 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002932/1.4, allocations: 0.6831 MB / 0.8402 GB, free: 152.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003116/1.403, allocations: 1.189 MB / 0.8414 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005868/1.404, allocations: 99.95 kB / 0.8414 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/1.418, allocations: 17.38 MB / 0.8584 GB, free: 133 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/1.418, allocations: 4 kB / 0.8584 GB, free: 133 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01341/1.432, allocations: 10.28 MB / 0.8685 GB, free: 122.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002605/1.434, allocations: 1.115 MB / 0.8696 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008594/1.435, allocations: 84.75 kB / 0.8696 GB, free: 121.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00255/1.438, allocations: 211.8 kB / 0.8698 GB, free: 121.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006453/1.438, allocations: 303.4 kB / 0.8701 GB, free: 120.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002585/1.439, allocations: 125.3 kB / 0.8702 GB, free: 120.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004421/1.443, allocations: 3.481 MB / 0.8736 GB, free: 117.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.01e-07/1.443, allocations: 0 / 0.8736 GB, free: 117.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006878/1.45, allocations: 1.956 MB / 0.8756 GB, free: 115.3 MB / 0.5762 GB 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.0008392/1.451, allocations: 289.9 kB / 0.8758 GB, free: 115 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01088/1.462, allocations: 7.701 MB / 0.8834 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/1.462, allocations: 8.062 kB / 0.8834 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005685/1.468, allocations: 4.08 MB / 0.8873 GB, free: 103.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006529/1.474, allocations: 1.442 MB / 0.8888 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02923/1.503, allocations: 20.35 MB / 0.9086 GB, free: 81.24 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006646/1.51, allocations: 7.377 MB / 0.9158 GB, free: 73.82 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005057/1.515, allocations: 2.005 MB / 0.9178 GB, free: 71.81 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/1.516, allocations: 403.4 kB / 0.9182 GB, free: 71.42 MB / 0.5762 GB Notification: Performance of SimCode: time 8.41e-07/1.516, allocations: 0 / 0.9182 GB, free: 71.42 MB / 0.5762 GB Notification: Performance of Templates: time 0.3592/1.875, allocations: 81 MB / 0.9973 GB, free: 194.1 MB / 0.5762 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches