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_OpenCircuit.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_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 112.9 kB / 16.63 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.001454/0.001454, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.289/1.289, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 47.39 kB / 300.2 MB, free: 6.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08674/0.08787, allocations: 49.45 MB / 349.6 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1806/0.2685, allocations: 29.84 MB / 379.4 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0166/0.2851, allocations: 8.532 MB / 388 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005566/0.2907, allocations: 183.4 kB / 388.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01166/0.3025, allocations: 4.588 MB / 392.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01254/0.315, allocations: 2.703 MB / 395.4 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005709/0.3208, allocations: 1.471 MB / 396.9 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01389/0.3347, allocations: 8.76 MB / 405.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02176/0.3565, allocations: 14.37 MB / 420 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007773/0.3643, allocations: 4.199 MB / 424.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008508/0.3728, allocations: 4.773 MB / 429 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003908/0.3768, allocations: 1.164 MB / 430.2 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006334/0.3832, allocations: 1.523 MB / 431.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004326/0.3875, allocations: 2.419 MB / 434.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01078/0.3983, allocations: 4.669 MB / 438.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01968/0.4181, allocations: 15.69 MB / 454.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4181, allocations: 0 / 454.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4181, allocations: 0 / 454.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003989/0.4185, allocations: 4 kB / 454.5 MB, free: 13.38 MB / 366.1 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.02765/0.4462, allocations: 9.771 MB / 464.3 MB, free: 3.516 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.4463, allocations: 8.031 kB / 464.3 MB, free: 3.508 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02928/0.4755, allocations: 5.259 MB / 469.5 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01191/0.4875, allocations: 4.949 MB / 474.5 MB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006605/0.4882, allocations: 0.5378 MB / 475 MB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003139/0.4913, allocations: 0.7107 MB / 475.7 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02667/0.518, allocations: 11.33 MB / 487 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003528/0.5184, allocations: 23.8 kB / 487.1 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002239/0.5207, allocations: 299.9 kB / 487.4 MB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000483/0.5212, allocations: 443 kB / 487.8 MB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02314/0.5443, allocations: 10.82 MB / 498.6 MB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2359/0.7802, allocations: 37.97 MB / 0.524 GB, free: 109.1 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01881/0.7991, allocations: 28.1 MB / 0.5515 GB, free: 83.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004821/0.804, allocations: 2.652 MB / 0.554 GB, free: 83.58 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01598/0.82, allocations: 7.926 MB / 0.5618 GB, free: 81.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.8201, allocations: 56.47 kB / 0.5618 GB, free: 81.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 5.12e-06/0.8201, allocations: 4.5 kB / 0.5618 GB, free: 81.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02156/0.8417, allocations: 10.37 MB / 0.572 GB, free: 76.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001785/0.8435, allocations: 2.007 MB / 0.5739 GB, free: 75.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006618/0.8501, allocations: 3.82 MB / 0.5777 GB, free: 73.72 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003895/0.8506, allocations: 65.11 kB / 0.5777 GB, free: 73.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001766/0.8523, allocations: 3.548 MB / 0.5812 GB, free: 70.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008001/0.8532, allocations: 0.8333 MB / 0.582 GB, free: 70.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001677/0.8548, allocations: 0.9497 MB / 0.5829 GB, free: 69.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.739e-05/0.8549, allocations: 312.5 kB / 0.5832 GB, free: 69.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002281/0.8572, allocations: 1.894 MB / 0.5851 GB, free: 68.83 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00359/0.8608, allocations: 4.392 MB / 0.5894 GB, free: 64.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007005/0.8678, allocations: 6.787 MB / 0.596 GB, free: 58.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/0.868, allocations: 26.38 kB / 0.596 GB, free: 58.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01325/0.8812, allocations: 6.977 MB / 0.6028 GB, free: 54.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.8814, allocations: 47.94 kB / 0.6029 GB, free: 54.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/0.8816, allocations: 87.94 kB / 0.603 GB, free: 54.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002029/0.8836, allocations: 0.7402 MB / 0.6037 GB, free: 53.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003942/0.8876, allocations: 1.123 MB / 0.6048 GB, free: 52.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006513/0.8941, allocations: 5.633 MB / 0.6103 GB, free: 46.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004871/0.899, allocations: 315.1 kB / 0.6106 GB, free: 46.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/0.9001, allocations: 275.9 kB / 0.6108 GB, free: 45.98 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005496/0.9056, allocations: 2.522 MB / 0.6133 GB, free: 43.44 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001247/0.9069, allocations: 383.3 kB / 0.6137 GB, free: 43.06 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007303/0.9142, allocations: 4.282 MB / 0.6179 GB, free: 38.76 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/0.9142, allocations: 24 kB / 0.6179 GB, free: 38.74 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/0.9143, allocations: 11.94 kB / 0.6179 GB, free: 38.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.729e-05/0.9143, allocations: 11.95 kB / 0.6179 GB, free: 38.71 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02205/0.9364, allocations: 14.28 MB / 0.6318 GB, free: 24.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/0.9364, allocations: 8 kB / 0.6319 GB, free: 24.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/0.9382, allocations: 483.2 kB / 0.6323 GB, free: 23.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/0.9402, allocations: 0.6934 MB / 0.633 GB, free: 23.06 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002723/0.9405, allocations: 67.98 kB / 0.6331 GB, free: 22.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007235/0.9477, allocations: 7.506 MB / 0.6404 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001266/0.949, allocations: 1.953 MB / 0.6423 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008377/0.9574, allocations: 6.734 MB / 0.6489 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/0.9591, allocations: 0.7967 MB / 0.6496 GB, free: 5.273 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001037/0.9602, allocations: 63.94 kB / 0.6497 GB, free: 5.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002159/0.9623, allocations: 163.9 kB / 0.6499 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004306/0.9628, allocations: 225.4 kB / 0.6501 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/0.963, allocations: 83.98 kB / 0.6502 GB, free: 4.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003853/0.9668, allocations: 2.513 MB / 0.6526 GB, free: 2.258 MB / 430.1 MB Notification: Performance of sort global known variables: time 4e-07/0.9669, allocations: 4 kB / 0.6526 GB, free: 2.254 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00491/0.9718, allocations: 1.288 MB / 0.6539 GB, free: 0.9688 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006068/0.9724, allocations: 234.7 kB / 0.6541 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01287/0.9853, allocations: 7.009 MB / 0.6609 GB, free: 9.707 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/0.9853, allocations: 7.562 kB / 0.661 GB, free: 9.703 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003726/0.9891, allocations: 2.396 MB / 0.6633 GB, free: 7.266 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005618/0.9947, allocations: 0.99 MB / 0.6643 GB, free: 6.297 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02532/1.02, allocations: 15.45 MB / 0.6793 GB, free: 6.672 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005958/1.026, allocations: 4.496 MB / 0.6837 GB, free: 2.129 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005471/1.032, allocations: 1.364 MB / 0.6851 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001154/1.033, allocations: 295.4 kB / 0.6853 GB, free: 484 kB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/1.033, allocations: 0 / 0.6853 GB, free: 484 kB / 462.1 MB Notification: Performance of Templates: time 0.243/1.276, allocations: 56.81 MB / 0.7408 GB, free: 111.9 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_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_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches