Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.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.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") translateModel(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 226.6 MB / 244.3 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000759/0.0007589, allocations: 89.67 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002123/0.0002124, allocations: 11.94 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.207, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.0164/0.2235, allocations: 24.69 MB / 432.2 MB, free: 3.035 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01206/0.2356, allocations: 6.586 MB / 438.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004019/0.2396, allocations: 239.2 kB / 439 MB, free: 12.21 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004429/0.2441, allocations: 1.363 MB / 440.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007904/0.252, allocations: 2.102 MB / 442.5 MB, free: 8.73 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004906/0.2569, allocations: 1.528 MB / 444 MB, free: 7.223 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02558/0.2825, allocations: 23.21 MB / 467.2 MB, free: 15.94 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06233/0.3449, allocations: 35.63 MB / 0.4911 GB, free: 12.19 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009254/0.3542, allocations: 6.756 MB / 0.4977 GB, free: 5.41 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3112/0.6655, allocations: 7.756 MB / 0.5052 GB, free: 24.82 MB / 378.8 MB Notification: Performance of NFPackage.collectConstants: time 0.003122/0.6686, allocations: 1.143 MB / 0.5063 GB, free: 24.82 MB / 378.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005291/0.6739, allocations: 1.403 MB / 0.5077 GB, free: 24.82 MB / 378.8 MB Notification: Performance of NFScalarize.scalarize: time 0.003111/0.6771, allocations: 3.199 MB / 0.5108 GB, free: 24.82 MB / 378.8 MB Notification: Performance of NFVerifyModel.verify: time 0.00474/0.6818, allocations: 3.598 MB / 0.5144 GB, free: 24.79 MB / 378.8 MB Notification: Performance of NFConvertDAE.convert: time 0.02249/0.7043, allocations: 33.27 MB / 0.5468 GB, free: 8.586 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.7044, allocations: 0 / 0.5468 GB, free: 8.586 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.364e-06/0.7044, allocations: 3.625 kB / 0.5468 GB, free: 8.586 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0008953/0.7053, allocations: 0 / 0.5468 GB, free: 8.586 MB / 378.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.04154/0.7468, allocations: 18.25 MB / 0.5647 GB, free: 15.86 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.7469, allocations: 7.312 kB / 0.5647 GB, free: 15.86 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04023/0.7871, allocations: 8.394 MB / 0.5729 GB, free: 12.48 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02027/0.8074, allocations: 11.18 MB / 0.5838 GB, free: 5.961 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001223/0.8087, allocations: 1.339 MB / 0.5851 GB, free: 5.199 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006299/0.815, allocations: 1.746 MB / 0.5868 GB, free: 4.035 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06509/0.8801, allocations: 28.62 MB / 0.6148 GB, free: 9.105 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004301/0.8806, allocations: 19.89 kB / 0.6148 GB, free: 9.086 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003497/0.8841, allocations: 0.725 MB / 0.6155 GB, free: 8.371 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007729/0.8849, allocations: 0.8648 MB / 0.6163 GB, free: 7.504 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04788/0.9327, allocations: 24.67 MB / 0.6404 GB, free: 14.81 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3447/1.277, allocations: 88.6 MB / 0.7269 GB, free: 110.5 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02204/1.3, allocations: 35.14 MB / 0.7613 GB, free: 82.98 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007799/1.307, allocations: 5.351 MB / 0.7665 GB, free: 81.51 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005645/1.308, allocations: 299.3 kB / 0.7668 GB, free: 81.3 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/1.308, allocations: 93.94 kB / 0.7669 GB, free: 81.22 MB / 490.8 MB Notification: Performance of pre-optimization done (n=589): time 7.864e-06/1.308, allocations: 0 / 0.7669 GB, free: 81.22 MB / 490.8 MB Notification: Performance of matching and sorting (n=589): time 0.02978/1.338, allocations: 14.52 MB / 0.781 GB, free: 73.74 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/1.338, allocations: 141.5 kB / 0.7812 GB, free: 73.64 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008743/1.347, allocations: 6.369 MB / 0.7874 GB, free: 70.31 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001021/1.348, allocations: 117.5 kB / 0.7875 GB, free: 70.21 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003825/1.352, allocations: 7.59 MB / 0.7949 GB, free: 63.61 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002268/1.354, allocations: 2.045 MB / 0.7969 GB, free: 61.86 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006702/1.355, allocations: 215.1 kB / 0.7971 GB, free: 61.69 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004904/1.355, allocations: 0.7458 MB / 0.7978 GB, free: 61.07 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006048/1.361, allocations: 4.774 MB / 0.8025 GB, free: 56.33 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008583/1.37, allocations: 9.507 MB / 0.8118 GB, free: 44.64 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009507/1.379, allocations: 7.168 MB / 0.8188 GB, free: 37.47 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000136/1.379, allocations: 45.2 kB / 0.8188 GB, free: 37.43 MB / 490.8 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02492/1.404, allocations: 15.46 MB / 0.8339 GB, free: 21.89 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/1.405, allocations: 74.81 kB / 0.834 GB, free: 21.82 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002267/1.405, allocations: 160 kB / 0.8342 GB, free: 21.66 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005402/1.41, allocations: 1.683 MB / 0.8358 GB, free: 19.98 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007571/1.418, allocations: 2.351 MB / 0.8381 GB, free: 17.62 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/1.429, allocations: 10.83 MB / 0.8487 GB, free: 6.66 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007155/1.436, allocations: 1.347 MB / 0.85 GB, free: 5.301 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001187/1.438, allocations: 0.5273 MB / 0.8505 GB, free: 4.773 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(6,75.0%) 80} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01021/1.448, allocations: 7.152 MB / 0.8575 GB, free: 13.61 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.449, allocations: 0.6145 MB / 0.8581 GB, free: 12.98 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01513/1.464, allocations: 10.26 MB / 0.8681 GB, free: 2.617 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01205/1.476, allocations: 7.889 MB / 0.8758 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.583e-05/1.476, allocations: 16 kB / 0.8758 GB, free: 10.63 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.609e-05/1.476, allocations: 27.89 kB / 0.8759 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2381/1.715, allocations: 26.44 MB / 0.9017 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.319e-05/1.715, allocations: 8.688 kB / 0.9017 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003716/1.718, allocations: 1.001 MB / 0.9027 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005173/1.724, allocations: 1.467 MB / 0.9041 GB, free: 164.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004025/1.724, allocations: 132.5 kB / 0.9042 GB, free: 164.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01128/1.735, allocations: 10.42 MB / 0.9144 GB, free: 159.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/1.735, allocations: 9.906 kB / 0.9144 GB, free: 159.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01622/1.751, allocations: 14.31 MB / 0.9284 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/1.754, allocations: 1.457 MB / 0.9298 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008856/1.755, allocations: 111.2 kB / 0.9299 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002797/1.758, allocations: 324.3 kB / 0.9302 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006087/1.759, allocations: 408.8 kB / 0.9306 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003109/1.759, allocations: 169.3 kB / 0.9308 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006065/1.765, allocations: 4.256 MB / 0.9349 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.1e-07/1.765, allocations: 3.812 kB / 0.9349 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01084/1.776, allocations: 4.038 MB / 0.9389 GB, free: 147.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 1 (source.plug_p.reference.gamma) * 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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(6,77.8%) 80} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001535/1.777, allocations: 327 kB / 0.9392 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01548/1.793, allocations: 11.46 MB / 0.9504 GB, free: 137 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.793, allocations: 0 / 0.9504 GB, free: 137 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005699/1.799, allocations: 4.712 MB / 0.955 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007088/1.806, allocations: 1.494 MB / 0.9564 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04877/1.855, allocations: 34.72 MB / 0.9903 GB, free: 97.66 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01373/1.868, allocations: 10.91 MB / 1.001 GB, free: 86.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002459/1.871, allocations: 0.5814 MB / 1.002 GB, free: 86.12 MB / 0.5105 GB Notification: Performance of SimCode: time 2.735e-06/1.871, allocations: 0 / 1.002 GB, free: 86.12 MB / 0.5105 GB Notification: Performance of Templates: time 0.6521/2.523, allocations: 280 MB / 1.275 GB, free: 154.6 MB / 0.5262 GB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches