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.001366/0.001367, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 59.84 kB / 307.6 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0955/0.09687, allocations: 50.53 MB / 358.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1992/0.2961, allocations: 30.98 MB / 389.2 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01993/0.3161, allocations: 8.887 MB / 398 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006792/0.323, allocations: 190.4 kB / 398.2 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01309/0.3361, allocations: 4.915 MB / 403.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.3467, allocations: 2.968 MB / 406.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005215/0.352, allocations: 1.64 MB / 407.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01235/0.3643, allocations: 8.745 MB / 416.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01985/0.3842, allocations: 12.92 MB / 429.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007247/0.3915, allocations: 4.203 MB / 433.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007573/0.3991, allocations: 4.843 MB / 438.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002903/0.4021, allocations: 1.168 MB / 439.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005077/0.4072, allocations: 1.554 MB / 441.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003079/0.4103, allocations: 2.412 MB / 443.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007125/0.4174, allocations: 4.692 MB / 448.3 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0169/0.4344, allocations: 15.74 MB / 464 MB, free: 2.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.4344, allocations: 4 kB / 464 MB, free: 2.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4344, allocations: 0 / 464 MB, free: 2.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000412/0.4349, allocations: 0 / 464 MB, free: 2.426 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.02878/0.4636, allocations: 9.833 MB / 473.9 MB, free: 8.492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.4637, allocations: 8.031 kB / 473.9 MB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02906/0.4928, allocations: 5.247 MB / 479.1 MB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01027/0.5031, allocations: 4.992 MB / 484.1 MB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000498/0.5036, allocations: 0.5339 MB / 484.6 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002709/0.5063, allocations: 0.7107 MB / 485.4 MB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0248/0.5312, allocations: 11.32 MB / 496.7 MB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002562/0.5315, allocations: 19.89 kB / 496.7 MB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001588/0.5331, allocations: 296 kB / 497 MB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003912/0.5335, allocations: 443 kB / 497.4 MB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02107/0.5545, allocations: 10.83 MB / 0.4963 GB, free: 5.922 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2324/0.7869, allocations: 38.87 MB / 0.5343 GB, free: 125.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01635/0.8033, allocations: 28.29 MB / 0.5619 GB, free: 100.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004274/0.8077, allocations: 2.667 MB / 0.5645 GB, free: 100 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01227/0.8199, allocations: 8.442 MB / 0.5728 GB, free: 96.61 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.82, allocations: 61.89 kB / 0.5728 GB, free: 96.56 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.907e-06/0.82, allocations: 0 / 0.5728 GB, free: 96.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01774/0.8378, allocations: 10.37 MB / 0.583 GB, free: 92.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001568/0.8394, allocations: 1.998 MB / 0.5849 GB, free: 90.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004697/0.8441, allocations: 3.842 MB / 0.5887 GB, free: 88.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00032/0.8444, allocations: 61.42 kB / 0.5887 GB, free: 88.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001501/0.8459, allocations: 3.56 MB / 0.5922 GB, free: 86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005969/0.8466, allocations: 0.8312 MB / 0.593 GB, free: 85.37 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001079/0.8476, allocations: 0.9521 MB / 0.5939 GB, free: 84.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.539e-05/0.8477, allocations: 305.1 kB / 0.5942 GB, free: 84.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002234/0.8499, allocations: 1.896 MB / 0.5961 GB, free: 83.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003037/0.853, allocations: 4.394 MB / 0.6004 GB, free: 79.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005733/0.8587, allocations: 6.786 MB / 0.607 GB, free: 74.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.847e-05/0.8588, allocations: 23.06 kB / 0.607 GB, free: 74.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0103/0.8691, allocations: 6.994 MB / 0.6138 GB, free: 68.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.736e-05/0.8692, allocations: 40 kB / 0.6139 GB, free: 68.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.758e-05/0.8693, allocations: 88.88 kB / 0.614 GB, free: 68.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001828/0.8711, allocations: 0.7474 MB / 0.6147 GB, free: 67.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/0.8746, allocations: 1.119 MB / 0.6158 GB, free: 66.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005955/0.8806, allocations: 5.632 MB / 0.6213 GB, free: 60.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004065/0.8847, allocations: 314.9 kB / 0.6216 GB, free: 60.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007109/0.8854, allocations: 276 kB / 0.6219 GB, free: 60.37 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 (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.003632/0.889, allocations: 2.526 MB / 0.6243 GB, free: 57.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007857/0.8898, allocations: 391.3 kB / 0.6247 GB, free: 57.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006284/0.8961, allocations: 4.276 MB / 0.6289 GB, free: 53.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.8962, allocations: 32 kB / 0.6289 GB, free: 53.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.8962, allocations: 7.938 kB / 0.6289 GB, free: 53.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.082e-05/0.8962, allocations: 11.95 kB / 0.6289 GB, free: 53.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02029/0.9165, allocations: 14.3 MB / 0.6429 GB, free: 38.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.9166, allocations: 12 kB / 0.6429 GB, free: 38.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/0.9183, allocations: 487.3 kB / 0.6434 GB, free: 38.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001871/0.9202, allocations: 0.6974 MB / 0.644 GB, free: 37.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002701/0.9205, allocations: 71.98 kB / 0.6441 GB, free: 37.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007483/0.928, allocations: 7.497 MB / 0.6514 GB, free: 29.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001302/0.9293, allocations: 1.948 MB / 0.6533 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008486/0.9378, allocations: 6.741 MB / 0.6599 GB, free: 20.44 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00204/0.9399, allocations: 0.8006 MB / 0.6607 GB, free: 19.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008648/0.9408, allocations: 63.97 kB / 0.6608 GB, free: 19.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001985/0.9428, allocations: 163.8 kB / 0.6609 GB, free: 19.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000405/0.9432, allocations: 221.5 kB / 0.6611 GB, free: 19.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/0.9434, allocations: 91.97 kB / 0.6612 GB, free: 19.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003442/0.9468, allocations: 2.522 MB / 0.6637 GB, free: 16.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.9468, allocations: 0 / 0.6637 GB, free: 16.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005052/0.9519, allocations: 1.296 MB / 0.6649 GB, free: 15.26 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 (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.0006356/0.9526, allocations: 251.8 kB / 0.6652 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01163/0.9642, allocations: 7 MB / 0.672 GB, free: 7.988 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/0.9642, allocations: 0 / 0.672 GB, free: 7.988 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003409/0.9677, allocations: 2.415 MB / 0.6744 GB, free: 5.531 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005197/0.9729, allocations: 1.005 MB / 0.6754 GB, free: 4.559 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02294/0.9959, allocations: 12.41 MB / 0.6875 GB, free: 7.961 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004891/1.001, allocations: 4.39 MB / 0.6918 GB, free: 3.527 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/1.002, allocations: 327.4 kB / 0.6921 GB, free: 3.207 MB / 462.1 MB Notification: Performance of SimCode: time 8.02e-07/1.002, allocations: 8 kB / 0.6921 GB, free: 3.199 MB / 462.1 MB Notification: Performance of Templates: time 0.5448/1.547, allocations: 201.1 MB / 0.8885 GB, free: 159 MB / 494.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/jenkins1/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/jenkins1/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