Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009413/0.0009413, allocations: 100.8 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001102, allocations: 197.2 kB / 17.9 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002566/0.0002568, allocations: 8 kB / 307.1 MB, free: 0.9141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09265/0.09293, allocations: 51.52 MB / 358.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2037/0.2967, allocations: 27.16 MB / 385.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.3111, allocations: 8.241 MB / 394.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003877/0.315, allocations: 180.6 kB / 394.2 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003623/0.3186, allocations: 1.258 MB / 395.5 MB, free: 296 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009262/0.3279, allocations: 2.443 MB / 397.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003673/0.3316, allocations: 1.09 MB / 399 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01351/0.3451, allocations: 10.05 MB / 409.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01978/0.3649, allocations: 10 MB / 419.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007074/0.372, allocations: 3.141 MB / 422.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007335/0.3794, allocations: 3.65 MB / 425.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002258/0.3816, allocations: 480 kB / 426.3 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005323/0.387, allocations: 0.8199 MB / 427.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003454/0.3904, allocations: 1.569 MB / 428.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004215/0.3947, allocations: 1.584 MB / 430.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01614/0.4108, allocations: 13.22 MB / 443.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4109, allocations: 4 kB / 443.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4109, allocations: 0 / 443.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004916/0.4114, allocations: 0 / 443.5 MB, free: 7.09 MB / 350.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.02411/0.4355, allocations: 8.293 MB / 451.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4355, allocations: 8.031 kB / 451.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02888/0.4644, allocations: 5.285 MB / 457.1 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01253/0.477, allocations: 4.892 MB / 462 MB, free: 4.422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008948/0.478, allocations: 0.5378 MB / 462.5 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003191/0.4812, allocations: 0.7107 MB / 463.3 MB, free: 3.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03022/0.5114, allocations: 11.26 MB / 474.5 MB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004038/0.5118, allocations: 19.84 kB / 474.5 MB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002302/0.5142, allocations: 296 kB / 474.8 MB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005355/0.5147, allocations: 451 kB / 475.3 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02451/0.5392, allocations: 10.76 MB / 486 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07088/0.6102, allocations: 38.99 MB / 0.5127 GB, free: 4.016 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.215/0.8252, allocations: 28.25 MB / 0.5403 GB, free: 119.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004581/0.8298, allocations: 2.66 MB / 0.5429 GB, free: 119.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01188/0.8417, allocations: 8.441 MB / 0.5511 GB, free: 116.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.8418, allocations: 60.78 kB / 0.5512 GB, free: 116.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.117e-06/0.8418, allocations: 3.938 kB / 0.5512 GB, free: 116.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.02139/0.8632, allocations: 11.07 MB / 0.562 GB, free: 111.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001714/0.8649, allocations: 1.909 MB / 0.5639 GB, free: 109.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/0.8697, allocations: 3.805 MB / 0.5676 GB, free: 108.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002065/0.8699, allocations: 66.52 kB / 0.5677 GB, free: 108.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/0.8718, allocations: 3.556 MB / 0.5711 GB, free: 105.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005974/0.8724, allocations: 0.8282 MB / 0.5719 GB, free: 104.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002009/0.8726, allocations: 99.84 kB / 0.572 GB, free: 104.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.8728, allocations: 0.4929 MB / 0.5725 GB, free: 104.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/0.8751, allocations: 1.881 MB / 0.5744 GB, free: 103.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003085/0.8782, allocations: 4.364 MB / 0.5786 GB, free: 99.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003116/0.8814, allocations: 2.817 MB / 0.5814 GB, free: 98.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-05/0.8814, allocations: 23.47 kB / 0.5814 GB, free: 98.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009481/0.8909, allocations: 6.953 MB / 0.5882 GB, free: 95.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.055e-05/0.891, allocations: 42.06 kB / 0.5882 GB, free: 95.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.589e-05/0.8911, allocations: 90.05 kB / 0.5883 GB, free: 95.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001654/0.8927, allocations: 0.757 MB / 0.5891 GB, free: 95.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003123/0.8959, allocations: 1.118 MB / 0.5901 GB, free: 94.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005402/0.9013, allocations: 5.216 MB / 0.5952 GB, free: 89.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003677/0.905, allocations: 322.9 kB / 0.5955 GB, free: 88.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005664/0.9056, allocations: 268 kB / 0.5958 GB, free: 88.66 MB / 446.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 (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 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003587/0.9092, allocations: 2.526 MB / 0.5983 GB, free: 86.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007506/0.9099, allocations: 388 kB / 0.5986 GB, free: 85.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006161/0.9161, allocations: 4.261 MB / 0.6028 GB, free: 81.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.9161, allocations: 28 kB / 0.6028 GB, free: 81.42 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.9162, allocations: 7.984 kB / 0.6028 GB, free: 81.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.045e-05/0.9162, allocations: 11.95 kB / 0.6028 GB, free: 81.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01906/0.9352, allocations: 14.29 MB / 0.6168 GB, free: 66.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/0.9353, allocations: 16 kB / 0.6168 GB, free: 66.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001672/0.937, allocations: 475.2 kB / 0.6173 GB, free: 66.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/0.9387, allocations: 0.6976 MB / 0.6179 GB, free: 65.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001821/0.9389, allocations: 67.98 kB / 0.618 GB, free: 65.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006816/0.9457, allocations: 6.937 MB / 0.6248 GB, free: 58.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001241/0.947, allocations: 1.858 MB / 0.6266 GB, free: 56.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008113/0.9551, allocations: 6.72 MB / 0.6332 GB, free: 49.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/0.9568, allocations: 0.7928 MB / 0.6339 GB, free: 48.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004732/0.9572, allocations: 63.98 kB / 0.634 GB, free: 48.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001569/0.9588, allocations: 167.9 kB / 0.6342 GB, free: 48.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003321/0.9592, allocations: 225.4 kB / 0.6344 GB, free: 48.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/0.9593, allocations: 87.98 kB / 0.6345 GB, free: 48.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003194/0.9625, allocations: 2.494 MB / 0.6369 GB, free: 45.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9625, allocations: 0 / 0.6369 GB, free: 45.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004268/0.9668, allocations: 1.3 MB / 0.6382 GB, free: 44.31 MB / 446.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 (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 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004283/0.9672, allocations: 238.4 kB / 0.6384 GB, free: 44.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006423/0.9737, allocations: 5.101 MB / 0.6434 GB, free: 38.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.9737, allocations: 5.438 kB / 0.6434 GB, free: 38.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002888/0.9766, allocations: 2.408 MB / 0.6457 GB, free: 36.47 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004102/0.9807, allocations: 0.962 MB / 0.6467 GB, free: 35.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/0.998, allocations: 14.81 MB / 0.6611 GB, free: 20.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003466/1.001, allocations: 4.501 MB / 0.6655 GB, free: 15.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003985/1.005, allocations: 1.399 MB / 0.6669 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007031/1.006, allocations: 299.4 kB / 0.6672 GB, free: 14.29 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/1.006, allocations: 0 / 0.6672 GB, free: 14.29 MB / 446.1 MB Notification: Performance of Templates: time 0.2746/1.281, allocations: 53.19 MB / 0.7191 GB, free: 154.1 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches