Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 198.8 kB / 18.06 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.5 MB / 245.4 MB, free: 6.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007551/0.0007552, allocations: 103 kB / 297.4 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002191/0.0002191, allocations: 4 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1985, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09946/0.298, allocations: 93.54 MB / 0.4904 GB, free: 14.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.2983, allocations: 89.27 kB / 0.4905 GB, free: 13.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3127/0.611, allocations: 74.39 MB / 0.5632 GB, free: 47.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6111, allocations: 0 / 0.5632 GB, free: 47.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000173/0.6112, allocations: 83.81 kB / 0.5632 GB, free: 47.84 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.006239/0.6175, allocations: 3.198 MB / 0.5664 GB, free: 44.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.6175, allocations: 8.031 kB / 0.5664 GB, free: 44.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/0.6191, allocations: 448.5 kB / 0.5668 GB, free: 44.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003815/0.6229, allocations: 2.24 MB / 0.569 GB, free: 41.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.6231, allocations: 222.2 kB / 0.5692 GB, free: 41.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003867/0.6235, allocations: 288.4 kB / 0.5695 GB, free: 41.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00537/0.6289, allocations: 4.137 MB / 0.5735 GB, free: 37.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.957e-05/0.6289, allocations: 192 / 0.5735 GB, free: 37.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002666/0.6292, allocations: 123.9 kB / 0.5736 GB, free: 36.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-05/0.6293, allocations: 137.9 kB / 0.5738 GB, free: 36.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004371/0.6337, allocations: 3.189 MB / 0.5769 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/0.6473, allocations: 11.04 MB / 0.5877 GB, free: 22.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002145/0.6495, allocations: 2.63 MB / 0.5902 GB, free: 19.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/0.6516, allocations: 1.488 MB / 0.5917 GB, free: 18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002959/0.6519, allocations: 138 kB / 0.5918 GB, free: 17.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.6519, allocations: 51.48 kB / 0.5919 GB, free: 17.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 5.01e-06/0.6519, allocations: 4 kB / 0.5919 GB, free: 17.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.008524/0.6605, allocations: 5.282 MB / 0.597 GB, free: 12.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.6605, allocations: 90.42 kB / 0.5971 GB, free: 12.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00229/0.6628, allocations: 1.914 MB / 0.599 GB, free: 10.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.443e-05/0.6629, allocations: 45.7 kB / 0.599 GB, free: 10.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005284/0.6634, allocations: 1.315 MB / 0.6003 GB, free: 9.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/0.6637, allocations: 461.3 kB / 0.6007 GB, free: 8.562 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.285e-05/0.6638, allocations: 36 kB / 0.6008 GB, free: 8.527 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.6639, allocations: 361.9 kB / 0.6011 GB, free: 8.168 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.6649, allocations: 0.8081 MB / 0.6019 GB, free: 7.359 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/0.6661, allocations: 1.173 MB / 0.6031 GB, free: 6.047 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002332/0.6685, allocations: 2.062 MB / 0.6051 GB, free: 3.848 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.6685, allocations: 3.938 kB / 0.6051 GB, free: 3.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003492/0.672, allocations: 2.511 MB / 0.6075 GB, free: 1.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.672, allocations: 8 kB / 0.6075 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/0.6721, allocations: 12 kB / 0.6076 GB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009049/0.673, allocations: 367.3 kB / 0.6079 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.6743, allocations: 339.4 kB / 0.6082 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005219/0.6795, allocations: 4.069 MB / 0.6122 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.681, allocations: 87.83 kB / 0.6123 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/0.6812, allocations: 63.98 kB / 0.6123 GB, free: 12.26 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002032/0.6832, allocations: 1.032 MB / 0.6134 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000462/0.6837, allocations: 197.7 kB / 0.6135 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003934/0.6877, allocations: 2.18 MB / 0.6157 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.6877, allocations: 12 kB / 0.6157 GB, free: 8.812 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.6877, allocations: 8 kB / 0.6157 GB, free: 8.805 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.6877, allocations: 7.969 kB / 0.6157 GB, free: 8.797 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009022/0.6967, allocations: 5.214 MB / 0.6208 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-05/0.6968, allocations: 4 kB / 0.6208 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.6978, allocations: 239.6 kB / 0.621 GB, free: 3.254 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009523/0.6988, allocations: 337.2 kB / 0.6213 GB, free: 2.922 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.6989, allocations: 31.98 kB / 0.6214 GB, free: 2.891 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005134/0.704, allocations: 3.975 MB / 0.6253 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.704, allocations: 4 kB / 0.6253 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005302/0.7094, allocations: 3.257 MB / 0.6284 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000944/0.7103, allocations: 466.7 kB / 0.6289 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/0.7106, allocations: 39.86 kB / 0.6289 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.7117, allocations: 104 kB / 0.629 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/0.7119, allocations: 88.88 kB / 0.6291 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.712, allocations: 43.98 kB / 0.6291 GB, free: 10.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002161/0.7142, allocations: 1.338 MB / 0.6305 GB, free: 9.395 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7142, allocations: 0 / 0.6305 GB, free: 9.395 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001781/0.716, allocations: 0.5703 MB / 0.631 GB, free: 8.824 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * 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 (104): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004908/0.7165, allocations: 222.4 kB / 0.6312 GB, free: 8.602 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003613/0.7201, allocations: 2.301 MB / 0.6335 GB, free: 6.262 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.7202, allocations: 8.062 kB / 0.6335 GB, free: 6.254 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002066/0.7222, allocations: 1.326 MB / 0.6348 GB, free: 4.883 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002637/0.7249, allocations: 0.4894 MB / 0.6353 GB, free: 4.398 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009934/0.7348, allocations: 6.706 MB / 0.6418 GB, free: 13.63 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002209/0.7371, allocations: 2.359 MB / 0.6441 GB, free: 11.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006441/0.7377, allocations: 143.4 kB / 0.6442 GB, free: 11.11 MB / 426.7 MB Notification: Performance of SimCode: time 7.71e-07/0.7377, allocations: 0 / 0.6442 GB, free: 11.11 MB / 426.7 MB Notification: Performance of Templates: time 0.2414/0.9792, allocations: 50.75 MB / 0.6938 GB, free: 107.1 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/TransformerTestbench/TransformerTestbench.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches