Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001594/0.001594, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001098, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.194e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09486, allocations: 47.57 MB / 369.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4076/0.5026, allocations: 79.79 MB / 448.9 MB, free: 13.42 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.5029, allocations: 86.62 kB / 449 MB, free: 13.37 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0432/0.5462, allocations: 11.14 MB / 460.1 MB, free: 4.086 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5462, allocations: 0 / 460.1 MB, free: 4.086 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.927e-05/0.5462, allocations: 4 kB / 460.1 MB, free: 4.082 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001922/0.5482, allocations: 0.6082 MB / 460.7 MB, free: 3.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.5483, allocations: 8.031 kB / 460.7 MB, free: 3.422 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.5493, allocations: 107.5 kB / 460.8 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004985/0.5498, allocations: 264.1 kB / 461.1 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.5499, allocations: 24.72 kB / 461.1 MB, free: 2.996 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-05/0.55, allocations: 43.95 kB / 461.2 MB, free: 2.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008521/0.5508, allocations: 315 kB / 461.5 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.5509, allocations: 7.906 kB / 461.5 MB, free: 2.621 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.75e-05/0.5509, allocations: 12 kB / 461.5 MB, free: 2.609 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.551, allocations: 8 kB / 461.5 MB, free: 2.602 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006681/0.5517, allocations: 235.1 kB / 461.7 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003084/0.5548, allocations: 1.448 MB / 463.2 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009959/0.5558, allocations: 0.695 MB / 463.9 MB, free: 15.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.5561, allocations: 104.8 kB / 464 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001462/0.5563, allocations: 81.11 kB / 464 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.5563, allocations: 38.56 kB / 464.1 MB, free: 15.72 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.795e-06/0.5563, allocations: 0 / 464.1 MB, free: 15.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008808/0.5572, allocations: 246.4 kB / 464.3 MB, free: 15.47 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.5573, allocations: 59.41 kB / 464.4 MB, free: 15.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.5576, allocations: 159.4 kB / 464.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.5576, allocations: 29.7 kB / 464.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.5578, allocations: 246.4 kB / 464.8 MB, free: 14.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.144e-05/0.5579, allocations: 82.83 kB / 464.9 MB, free: 14.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/0.5579, allocations: 8 kB / 464.9 MB, free: 14.87 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.5581, allocations: 322.8 kB / 465.2 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.5583, allocations: 64.56 kB / 465.3 MB, free: 14.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.5585, allocations: 119.4 kB / 465.4 MB, free: 14.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.5588, allocations: 77.09 kB / 465.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5588, allocations: 0 / 465.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009186/0.5597, allocations: 316.9 kB / 465.8 MB, free: 13.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.5598, allocations: 4 kB / 465.8 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.5598, allocations: 4 kB / 465.8 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005107/0.5603, allocations: 80.84 kB / 465.9 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/0.5606, allocations: 39.98 kB / 465.9 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002847/0.5635, allocations: 1.824 MB / 467.7 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.5638, allocations: 31.72 kB / 467.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.5638, allocations: 12 kB / 467.8 MB, free: 11.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.564, allocations: 117 kB / 467.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.13e-05/0.5641, allocations: 19.88 kB / 467.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009078/0.565, allocations: 279.8 kB / 468.2 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.565, allocations: 0 / 468.2 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.565, allocations: 7.953 kB / 468.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.565, allocations: 0 / 468.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.5666, allocations: 0.6868 MB / 468.9 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.5666, allocations: 0 / 468.9 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002294/0.5669, allocations: 31.94 kB / 468.9 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004111/0.5673, allocations: 76.75 kB / 469 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.5673, allocations: 8 kB / 469 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002667/0.57, allocations: 1.823 MB / 470.8 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5701, allocations: 0 / 470.8 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.5711, allocations: 443.9 kB / 471.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.5713, allocations: 108.9 kB / 471.3 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.5714, allocations: 8 kB / 471.4 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.5715, allocations: 4 kB / 471.4 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.421e-05/0.5716, allocations: 19.97 kB / 471.4 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.5717, allocations: 7.938 kB / 471.4 MB, free: 7.953 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001886/0.5719, allocations: 135.5 kB / 471.5 MB, free: 7.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5719, allocations: 0 / 471.5 MB, free: 7.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006781/0.5726, allocations: 103.7 kB / 471.6 MB, free: 7.719 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002873/0.5729, allocations: 135.2 kB / 471.7 MB, free: 7.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009034/0.5738, allocations: 338.1 kB / 472.1 MB, free: 7.234 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5738, allocations: 0 / 472.1 MB, free: 7.234 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000517/0.5743, allocations: 238.8 kB / 472.3 MB, free: 6.988 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.5747, allocations: 24.08 kB / 472.3 MB, free: 6.965 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.576, allocations: 433.6 kB / 472.8 MB, free: 6.516 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.5764, allocations: 0.7555 MB / 473.5 MB, free: 5.734 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.768e-05/0.5765, allocations: 23.42 kB / 473.5 MB, free: 5.711 MB / 346.7 MB Notification: Performance of SimCode: time 1.723e-06/0.5765, allocations: 7.938 kB / 473.5 MB, free: 5.703 MB / 346.7 MB Notification: Performance of Templates: time 0.009338/0.5859, allocations: 3.827 MB / 477.4 MB, free: 1.875 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches