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.001313/0.001313, allocations: 174.2 kB / 13.63 MB, free: 1.684 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.346/1.346, allocations: 221.3 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008643/0.0008643, allocations: 94.84 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.654e-05/2.664e-05, allocations: 0 / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1212, allocations: 50.41 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2887/0.41, allocations: 105.1 MB / 499.4 MB, free: 14.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.4102, allocations: 95.77 kB / 499.5 MB, free: 14.24 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1013/0.5115, allocations: 39.52 MB / 0.5264 GB, free: 6.477 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5115, allocations: 4 kB / 0.5264 GB, free: 6.473 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001017/0.5117, allocations: 43.94 kB / 0.5264 GB, free: 6.43 MB / 410.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.00299/0.5147, allocations: 1.74 MB / 0.5281 GB, free: 4.637 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.5147, allocations: 12.02 kB / 0.5281 GB, free: 4.625 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006182/0.5153, allocations: 233.4 kB / 0.5283 GB, free: 4.395 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/0.5175, allocations: 1.269 MB / 0.5296 GB, free: 3.066 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.519e-05/0.5176, allocations: 119.1 kB / 0.5297 GB, free: 2.949 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002346/0.5178, allocations: 152 kB / 0.5298 GB, free: 2.801 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002972/0.5208, allocations: 1.951 MB / 0.5317 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.127e-05/0.5209, allocations: 11.91 kB / 0.5318 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/0.521, allocations: 60 kB / 0.5318 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-05/0.5211, allocations: 70.92 kB / 0.5319 GB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002427/0.5235, allocations: 1.546 MB / 0.5334 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008872/0.5324, allocations: 6.87 MB / 0.5401 GB, free: 7.898 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006894/0.5331, allocations: 489.5 kB / 0.5406 GB, free: 7.414 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003819/0.5335, allocations: 282.1 kB / 0.5408 GB, free: 7.137 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002224/0.5358, allocations: 1.463 MB / 0.5423 GB, free: 5.629 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.5358, allocations: 30.56 kB / 0.5423 GB, free: 5.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 3.266e-06/0.5358, allocations: 0 / 0.5423 GB, free: 5.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.005617/0.5414, allocations: 2.833 MB / 0.5451 GB, free: 2.691 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002168/0.5436, allocations: 2.159 MB / 0.5472 GB, free: 372 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1854/0.729, allocations: 1.369 MB / 0.5485 GB, free: 110.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/0.7292, allocations: 35.45 kB / 0.5485 GB, free: 110.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005882/0.7298, allocations: 1.03 MB / 0.5495 GB, free: 110 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.7299, allocations: 205.6 kB / 0.5497 GB, free: 109.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.73, allocations: 33.75 kB / 0.5498 GB, free: 109.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.821e-05/0.7301, allocations: 370.2 kB / 0.5501 GB, free: 109.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006804/0.7308, allocations: 486.5 kB / 0.5506 GB, free: 109.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009405/0.7317, allocations: 1.394 MB / 0.552 GB, free: 108.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009932/0.7327, allocations: 0.7693 MB / 0.5527 GB, free: 108.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-05/0.7328, allocations: 11.5 kB / 0.5527 GB, free: 108.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002974/0.7357, allocations: 2.047 MB / 0.5547 GB, free: 108.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.7358, allocations: 22.17 kB / 0.5547 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-05/0.7358, allocations: 38.05 kB / 0.5548 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005137/0.7363, allocations: 232.8 kB / 0.555 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.7374, allocations: 375.8 kB / 0.5554 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.7388, allocations: 1.748 MB / 0.5571 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.74, allocations: 122.6 kB / 0.5572 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.7401, allocations: 92.64 kB / 0.5573 GB, free: 107 MB / 426.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 () * 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.0002/0.7403, allocations: 222.2 kB / 0.5575 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.7405, allocations: 148.3 kB / 0.5576 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/0.7423, allocations: 1.039 MB / 0.5586 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.7423, allocations: 5.891 kB / 0.5586 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.7423, allocations: 0.9375 kB / 0.5586 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.7423, allocations: 3.656 kB / 0.5586 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004782/0.7471, allocations: 3.095 MB / 0.5617 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.7471, allocations: 3 kB / 0.5617 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003916/0.7475, allocations: 97.75 kB / 0.5618 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005936/0.7481, allocations: 224.6 kB / 0.562 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.841e-05/0.7482, allocations: 13.02 kB / 0.562 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003111/0.7513, allocations: 3.731 MB / 0.5656 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001608/0.7529, allocations: 2.005 MB / 0.5676 GB, free: 102 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.7551, allocations: 1.8 MB / 0.5693 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000493/0.7556, allocations: 299.2 kB / 0.5696 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.7558, allocations: 15.31 kB / 0.5696 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006027/0.7564, allocations: 48.91 kB / 0.5697 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.7565, allocations: 50.05 kB / 0.5697 GB, free: 101.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.7565, allocations: 22.17 kB / 0.5698 GB, free: 101.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001417/0.758, allocations: 1.015 MB / 0.5708 GB, free: 101.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.758, allocations: 0.9688 kB / 0.5708 GB, free: 101.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001605/0.7596, allocations: 410.2 kB / 0.5711 GB, free: 101.1 MB / 426.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 () * 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.0004796/0.7601, allocations: 369.9 kB / 0.5715 GB, free: 101 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.7622, allocations: 1.521 MB / 0.573 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7622, allocations: 3.969 kB / 0.573 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.7633, allocations: 0.8002 MB / 0.5738 GB, free: 99.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.7647, allocations: 368.8 kB / 0.5741 GB, free: 99.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.7681, allocations: 2.395 MB / 0.5765 GB, free: 98.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000823/0.7689, allocations: 1.498 MB / 0.5779 GB, free: 97.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008985/0.7698, allocations: 352.1 kB / 0.5783 GB, free: 97.85 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.77, allocations: 111.1 kB / 0.5784 GB, free: 97.84 MB / 426.7 MB Notification: Performance of SimCode: time 7.21e-07/0.7701, allocations: 0 / 0.5784 GB, free: 97.84 MB / 426.7 MB Notification: Performance of Templates: time 0.02719/0.7972, allocations: 21.94 MB / 0.5998 GB, free: 96.59 MB / 426.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