Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009019/0.000902, allocations: 180.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.232/1.232, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007983/0.0007983, allocations: 88.27 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.000302, allocations: 11.94 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2185, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.3381, allocations: 105.2 MB / 0.4948 GB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.3383, allocations: 87.95 kB / 0.4949 GB, free: 7.121 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.307/0.6454, allocations: 39.48 MB / 0.5335 GB, free: 80.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.6455, allocations: 0 / 0.5335 GB, free: 80.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002252/0.6457, allocations: 39.94 kB / 0.5335 GB, free: 80.86 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004946/0.6507, allocations: 1.957 MB / 0.5354 GB, free: 78.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.6507, allocations: 12.03 kB / 0.5354 GB, free: 78.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006471/0.6514, allocations: 241.5 kB / 0.5357 GB, free: 78.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.6536, allocations: 1.277 MB / 0.5369 GB, free: 77.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.699e-05/0.6537, allocations: 111.1 kB / 0.537 GB, free: 77.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.6539, allocations: 151.9 kB / 0.5372 GB, free: 77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00282/0.6567, allocations: 1.982 MB / 0.5391 GB, free: 74.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.416e-05/0.6568, allocations: 7.953 kB / 0.5391 GB, free: 74.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.6569, allocations: 60 kB / 0.5392 GB, free: 74.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.376e-05/0.657, allocations: 74.92 kB / 0.5392 GB, free: 74.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/0.6591, allocations: 1.573 MB / 0.5408 GB, free: 73.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008342/0.6674, allocations: 6.87 MB / 0.5475 GB, free: 66.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006262/0.6681, allocations: 0.4902 MB / 0.548 GB, free: 65.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002443/0.6706, allocations: 1.459 MB / 0.5494 GB, free: 64.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.6706, allocations: 34.56 kB / 0.5494 GB, free: 64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 3.867e-06/0.6706, allocations: 4 kB / 0.5494 GB, free: 63.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.005975/0.6766, allocations: 3.133 MB / 0.5525 GB, free: 60.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001856/0.6785, allocations: 2.209 MB / 0.5546 GB, free: 58.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.6804, allocations: 1.389 MB / 0.556 GB, free: 57.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.954e-05/0.6804, allocations: 33.7 kB / 0.556 GB, free: 56.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005162/0.681, allocations: 1.033 MB / 0.557 GB, free: 55.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.6811, allocations: 205.3 kB / 0.5572 GB, free: 55.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.489e-05/0.6812, allocations: 32 kB / 0.5573 GB, free: 55.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.907e-05/0.6813, allocations: 369.9 kB / 0.5576 GB, free: 55.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/0.6819, allocations: 499.7 kB / 0.5581 GB, free: 54.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009448/0.6828, allocations: 1.407 MB / 0.5595 GB, free: 52.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008279/0.6837, allocations: 0.7735 MB / 0.5602 GB, free: 52.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.6837, allocations: 8 kB / 0.5602 GB, free: 52.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00273/0.6864, allocations: 2.083 MB / 0.5623 GB, free: 50.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.6865, allocations: 16 kB / 0.5623 GB, free: 50.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/0.6865, allocations: 36 kB / 0.5623 GB, free: 50.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004789/0.687, allocations: 231 kB / 0.5625 GB, free: 49.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009665/0.688, allocations: 383.3 kB / 0.5629 GB, free: 49.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.6893, allocations: 1.765 MB / 0.5646 GB, free: 47.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.6907, allocations: 135.4 kB / 0.5648 GB, free: 47.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.6908, allocations: 91.98 kB / 0.5648 GB, free: 47.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * 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 (195): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001061/0.6919, allocations: 0.5867 MB / 0.5654 GB, free: 46.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/0.6922, allocations: 142.2 kB / 0.5656 GB, free: 46.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.6938, allocations: 1.055 MB / 0.5666 GB, free: 45.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.6939, allocations: 4 kB / 0.5666 GB, free: 45.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.6939, allocations: 0 / 0.5666 GB, free: 45.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.6939, allocations: 3.984 kB / 0.5666 GB, free: 45.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005157/0.699, allocations: 3.101 MB / 0.5696 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.6991, allocations: 4 kB / 0.5696 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.6994, allocations: 99.8 kB / 0.5697 GB, free: 42.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005743/0.7, allocations: 222.7 kB / 0.5699 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.655e-05/0.7001, allocations: 20 kB / 0.5699 GB, free: 41.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002948/0.703, allocations: 3.8 MB / 0.5737 GB, free: 37.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001543/0.7046, allocations: 2.034 MB / 0.5756 GB, free: 35.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.7068, allocations: 1.815 MB / 0.5774 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008318/0.7076, allocations: 303.2 kB / 0.5777 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004025/0.708, allocations: 20 kB / 0.5777 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008699/0.7089, allocations: 51.91 kB / 0.5778 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.709, allocations: 51.86 kB / 0.5778 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.264e-05/0.7091, allocations: 20 kB / 0.5778 GB, free: 33.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00187/0.711, allocations: 1.031 MB / 0.5789 GB, free: 32.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.711, allocations: 0 / 0.5789 GB, free: 32.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002091/0.7131, allocations: 408 kB / 0.5792 GB, free: 31.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * 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 (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005538/0.7136, allocations: 379.4 kB / 0.5796 GB, free: 31.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002229/0.7159, allocations: 1.535 MB / 0.5811 GB, free: 29.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.7159, allocations: 3.938 kB / 0.5811 GB, free: 29.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.7169, allocations: 0.8163 MB / 0.5819 GB, free: 29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.7187, allocations: 367.8 kB / 0.5823 GB, free: 28.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005357/0.7241, allocations: 3.608 MB / 0.5858 GB, free: 24.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/0.7255, allocations: 1.499 MB / 0.5872 GB, free: 23.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001377/0.7269, allocations: 349.7 kB / 0.5876 GB, free: 23.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000328/0.7273, allocations: 107.4 kB / 0.5877 GB, free: 22.97 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.7273, allocations: 0 / 0.5877 GB, free: 22.97 MB / 378.7 MB Notification: Performance of Templates: time 0.03612/0.7634, allocations: 21.36 MB / 0.6085 GB, free: 1.805 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches