Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001592/0.001592, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009644/0.0009646, allocations: 78.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.188e-05/4.226e-05, allocations: 0 / 322.5 MB, free: 17.33 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1201, allocations: 47.58 MB / 370 MB, free: 1.688 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3891/0.5093, allocations: 148.9 MB / 0.5068 GB, free: 9.352 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.5096, allocations: 102.5 kB / 0.5069 GB, free: 9.293 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.921/1.431, allocations: 232.1 MB / 0.7336 GB, free: 42.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.431, allocations: 3.562 kB / 0.7336 GB, free: 42.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004138/1.431, allocations: 156.4 kB / 0.7338 GB, free: 42.38 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02285/1.454, allocations: 6.793 MB / 0.7404 GB, free: 40.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/1.454, allocations: 14.86 kB / 0.7404 GB, free: 40.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02025/1.474, allocations: 3.657 MB / 0.744 GB, free: 39.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01432/1.489, allocations: 5.924 MB / 0.7498 GB, free: 38.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007133/1.489, allocations: 0.5257 MB / 0.7503 GB, free: 38.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003755/1.493, allocations: 0.694 MB / 0.7509 GB, free: 38.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02661/1.52, allocations: 11.31 MB / 0.762 GB, free: 37.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002813/1.52, allocations: 25.77 kB / 0.762 GB, free: 37.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001782/1.522, allocations: 308.3 kB / 0.7623 GB, free: 37.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004281/1.522, allocations: 485.3 kB / 0.7628 GB, free: 37.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02247/1.545, allocations: 10.49 MB / 0.773 GB, free: 33.81 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07373/1.619, allocations: 38.32 MB / 0.8104 GB, free: 7.168 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0176/1.636, allocations: 18.41 MB / 0.8284 GB, free: 3.875 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008372/1.645, allocations: 4.205 MB / 0.8325 GB, free: 12 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03052/1.675, allocations: 13.66 MB / 0.8459 GB, free: 4.504 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.655e-05/1.675, allocations: 69.28 kB / 0.8459 GB, free: 4.426 MB / 442.7 MB Notification: Performance of pre-optimization done (n=399): time 6.543e-06/1.675, allocations: 0 / 0.8459 GB, free: 4.426 MB / 442.7 MB Notification: Performance of matching and sorting (n=415): time 0.3003/1.976, allocations: 14.56 MB / 0.8602 GB, free: 71.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001662/1.977, allocations: 1.931 MB / 0.862 GB, free: 70.51 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005829/1.983, allocations: 2.933 MB / 0.8649 GB, free: 70.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009966/1.984, allocations: 85.2 kB / 0.865 GB, free: 70.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002266/1.987, allocations: 3.163 MB / 0.8681 GB, free: 68.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00184/1.988, allocations: 1.396 MB / 0.8694 GB, free: 68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/1.989, allocations: 103.6 kB / 0.8695 GB, free: 68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003309/1.989, allocations: 0.5266 MB / 0.8701 GB, free: 67.69 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004274/1.993, allocations: 2.844 MB / 0.8728 GB, free: 67.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00521/1.999, allocations: 4.843 MB / 0.8776 GB, free: 65.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004876/2.003, allocations: 3.756 MB / 0.8812 GB, free: 65.19 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.614e-05/2.004, allocations: 20.72 kB / 0.8812 GB, free: 65.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.0142/2.018, allocations: 9.303 MB / 0.8903 GB, free: 64.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.884e-05/2.018, allocations: 31.84 kB / 0.8904 GB, free: 64.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/2.018, allocations: 65.78 kB / 0.8904 GB, free: 64.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004579/2.023, allocations: 2.471 MB / 0.8928 GB, free: 64.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003845/2.026, allocations: 1.054 MB / 0.8939 GB, free: 64.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006093/2.033, allocations: 5.396 MB / 0.8991 GB, free: 63.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005835/2.038, allocations: 324.7 kB / 0.8994 GB, free: 63.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001898/2.04, allocations: 264.5 kB / 0.8997 GB, free: 63.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.002439/2.043, allocations: 433.4 kB / 0.9001 GB, free: 63.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001782/2.045, allocations: 416.7 kB / 0.9005 GB, free: 63.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/2.056, allocations: 7.803 MB / 0.9081 GB, free: 60.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.577e-05/2.056, allocations: 97.8 kB / 0.9082 GB, free: 60.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/2.056, allocations: 3.781 kB / 0.9082 GB, free: 60.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.169e-05/2.056, allocations: 20.67 kB / 0.9082 GB, free: 60.89 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02967/2.086, allocations: 19.41 MB / 0.9272 GB, free: 52.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-05/2.086, allocations: 7.781 kB / 0.9272 GB, free: 52.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002036/2.088, allocations: 0.5278 MB / 0.9277 GB, free: 52.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004142/2.092, allocations: 2.438 MB / 0.9301 GB, free: 51.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003979/2.092, allocations: 93.67 kB / 0.9302 GB, free: 51.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006552/2.099, allocations: 7.155 MB / 0.9372 GB, free: 46.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001375/2.1, allocations: 1.876 MB / 0.939 GB, free: 45.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01588/2.116, allocations: 12.23 MB / 0.951 GB, free: 39.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003228/2.12, allocations: 1.079 MB / 0.952 GB, free: 38.41 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008847/2.121, allocations: 76.89 kB / 0.9521 GB, free: 38.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/2.123, allocations: 200 kB / 0.9523 GB, free: 38.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005481/2.123, allocations: 323.2 kB / 0.9526 GB, free: 38.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002666/2.124, allocations: 118.9 kB / 0.9527 GB, free: 38.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003106/2.127, allocations: 2.158 MB / 0.9548 GB, free: 37.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.71e-07/2.127, allocations: 0 / 0.9548 GB, free: 37.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005405/2.132, allocations: 1.374 MB / 0.9561 GB, free: 35.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.001088/2.133, allocations: 0.7089 MB / 0.9568 GB, free: 35.22 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01026/2.143, allocations: 7.221 MB / 0.9639 GB, free: 28.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/2.144, allocations: 4 kB / 0.9639 GB, free: 28.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005504/2.149, allocations: 3.599 MB / 0.9674 GB, free: 25.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004865/2.154, allocations: 0.8971 MB / 0.9683 GB, free: 24.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0219/2.176, allocations: 12.24 MB / 0.9802 GB, free: 13.71 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004569/2.18, allocations: 4.668 MB / 0.9848 GB, free: 10.14 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004163/2.185, allocations: 1.171 MB / 0.9859 GB, free: 9.328 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007783/2.185, allocations: 292.6 kB / 0.9862 GB, free: 9.055 MB / 442.7 MB Notification: Performance of SimCode: time 1.523e-06/2.185, allocations: 0 / 0.9862 GB, free: 9.055 MB / 442.7 MB Notification: Performance of Templates: time 0.3974/2.583, allocations: 79.41 MB / 1.064 GB, free: 75.44 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches