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.001373/0.001372, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001582/0.001583, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.8 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 61.88 kB / 307 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.08555, allocations: 50.54 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1812/0.2668, allocations: 30.97 MB / 388.5 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01683/0.2837, allocations: 8.878 MB / 397.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005538/0.2893, allocations: 191.4 kB / 397.5 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01243/0.3017, allocations: 4.917 MB / 402.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009872/0.3116, allocations: 2.98 MB / 405.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005074/0.3167, allocations: 1.632 MB / 407.1 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01329/0.33, allocations: 8.744 MB / 415.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01825/0.3483, allocations: 12.91 MB / 428.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007315/0.3557, allocations: 4.211 MB / 432.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008187/0.3639, allocations: 4.843 MB / 437.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003173/0.3671, allocations: 1.168 MB / 438.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005079/0.3722, allocations: 1.558 MB / 440.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003189/0.3755, allocations: 2.416 MB / 442.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007768/0.3832, allocations: 4.688 MB / 447.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01777/0.401, allocations: 15.75 MB / 463.3 MB, free: 2.453 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.4011, allocations: 0 / 463.3 MB, free: 2.453 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4011, allocations: 0 / 463.3 MB, free: 2.453 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004295/0.4015, allocations: 0 / 463.3 MB, free: 2.453 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.03128/0.4328, allocations: 9.833 MB / 473.2 MB, free: 8.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.4329, allocations: 8.031 kB / 473.2 MB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02917/0.4621, allocations: 5.247 MB / 478.4 MB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/0.4734, allocations: 4.992 MB / 483.4 MB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000651/0.4741, allocations: 0.5378 MB / 484 MB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00274/0.4769, allocations: 0.7068 MB / 484.7 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02917/0.5061, allocations: 11.32 MB / 496 MB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003953/0.5065, allocations: 7.906 kB / 496 MB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002732/0.5093, allocations: 304 kB / 496.3 MB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004981/0.5098, allocations: 447 kB / 496.7 MB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02319/0.533, allocations: 10.82 MB / 0.4957 GB, free: 5.957 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2397/0.7728, allocations: 38.88 MB / 0.5336 GB, free: 123.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01802/0.7908, allocations: 28.28 MB / 0.5612 GB, free: 97.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005713/0.7966, allocations: 2.671 MB / 0.5639 GB, free: 97.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01429/0.8109, allocations: 8.443 MB / 0.5721 GB, free: 95.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.811, allocations: 62.67 kB / 0.5722 GB, free: 95.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.937e-06/0.811, allocations: 0.625 kB / 0.5722 GB, free: 95.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01752/0.8285, allocations: 10.37 MB / 0.5823 GB, free: 91.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001548/0.8301, allocations: 1.999 MB / 0.5842 GB, free: 89.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004892/0.835, allocations: 3.838 MB / 0.588 GB, free: 88.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002764/0.8353, allocations: 61.61 kB / 0.588 GB, free: 87.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00154/0.8369, allocations: 3.56 MB / 0.5915 GB, free: 85.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005772/0.8375, allocations: 0.8324 MB / 0.5923 GB, free: 84.63 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001038/0.8385, allocations: 0.9528 MB / 0.5933 GB, free: 84.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.037e-05/0.8386, allocations: 305.1 kB / 0.5936 GB, free: 83.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002143/0.8407, allocations: 1.892 MB / 0.5954 GB, free: 83.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002819/0.8435, allocations: 4.397 MB / 0.5997 GB, free: 79.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005621/0.8492, allocations: 6.785 MB / 0.6063 GB, free: 73.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.034e-05/0.8492, allocations: 25 kB / 0.6063 GB, free: 73.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009145/0.8584, allocations: 6.999 MB / 0.6132 GB, free: 68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.8585, allocations: 40 kB / 0.6132 GB, free: 67.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-05/0.8586, allocations: 88 kB / 0.6133 GB, free: 67.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001784/0.8604, allocations: 0.7404 MB / 0.614 GB, free: 67.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00319/0.8636, allocations: 1.123 MB / 0.6151 GB, free: 66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005758/0.8693, allocations: 5.639 MB / 0.6206 GB, free: 60.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00399/0.8733, allocations: 319 kB / 0.6209 GB, free: 59.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006099/0.874, allocations: 272 kB / 0.6212 GB, free: 59.65 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.003769/0.8778, allocations: 2.522 MB / 0.6237 GB, free: 57.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008524/0.8786, allocations: 395.2 kB / 0.624 GB, free: 56.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006114/0.8847, allocations: 4.273 MB / 0.6282 GB, free: 52.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.8848, allocations: 28 kB / 0.6282 GB, free: 52.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.8848, allocations: 7.938 kB / 0.6282 GB, free: 52.38 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.8848, allocations: 11.95 kB / 0.6283 GB, free: 52.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01863/0.9035, allocations: 14.31 MB / 0.6422 GB, free: 37.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.9035, allocations: 12 kB / 0.6422 GB, free: 37.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/0.9051, allocations: 483.2 kB / 0.6427 GB, free: 37.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/0.9069, allocations: 0.6946 MB / 0.6434 GB, free: 36.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/0.907, allocations: 71.98 kB / 0.6434 GB, free: 36.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007047/0.9141, allocations: 7.498 MB / 0.6508 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001244/0.9154, allocations: 1.955 MB / 0.6527 GB, free: 26.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008021/0.9234, allocations: 6.733 MB / 0.6593 GB, free: 19.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/0.9254, allocations: 0.8045 MB / 0.66 GB, free: 18.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006034/0.926, allocations: 60.06 kB / 0.6601 GB, free: 18.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/0.9278, allocations: 163.8 kB / 0.6602 GB, free: 18.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004067/0.9283, allocations: 217.5 kB / 0.6605 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.9284, allocations: 91.98 kB / 0.6605 GB, free: 18.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003283/0.9317, allocations: 2.526 MB / 0.663 GB, free: 15.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.9317, allocations: 0 / 0.663 GB, free: 15.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005134/0.9369, allocations: 1.296 MB / 0.6643 GB, free: 14.53 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.000533/0.9374, allocations: 247.7 kB / 0.6645 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01151/0.9489, allocations: 7.003 MB / 0.6714 GB, free: 7.262 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/0.949, allocations: 3.938 kB / 0.6714 GB, free: 7.258 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003277/0.9523, allocations: 2.412 MB / 0.6737 GB, free: 4.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004639/0.9569, allocations: 1.006 MB / 0.6747 GB, free: 3.832 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0213/0.9782, allocations: 12.52 MB / 0.6869 GB, free: 7.137 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005038/0.9833, allocations: 4.501 MB / 0.6913 GB, free: 2.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004392/0.9878, allocations: 1.368 MB / 0.6927 GB, free: 1.219 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008261/0.9886, allocations: 299.4 kB / 0.6929 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.9886, allocations: 0 / 0.6929 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of Templates: time 0.3043/1.293, allocations: 57.23 MB / 0.7488 GB, free: 135.8 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