Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 190.7 kB / 24.49 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 39.94 kB / 371.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2589, allocations: 52.17 MB / 423.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.00413/0.263, allocations: 2.66 MB / 426 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.2647, allocations: 1.071 MB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.2648, allocations: 8 kB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001381/0.2662, allocations: 0.5717 MB / 427.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.2664, allocations: 135.1 kB / 427.8 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.2676, allocations: 0.6404 MB / 428.4 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.268, allocations: 302.5 kB / 428.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003845/0.2684, allocations: 237.3 kB / 429 MB, free: 8.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.2685, allocations: 135.5 kB / 429.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.2688, allocations: 167.3 kB / 429.3 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.2688, allocations: 24 kB / 429.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.2691, allocations: 175.9 kB / 429.5 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.166e-05/0.2691, allocations: 59.83 kB / 429.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.2693, allocations: 119.4 kB / 429.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005748/0.2698, allocations: 0.4981 MB / 430.1 MB, free: 7.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2698, allocations: 4 kB / 430.1 MB, free: 7.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2698, allocations: 0 / 430.1 MB, free: 7.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.2699, allocations: 0 / 430.1 MB, free: 7.629 MB / 334.1 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.001574/0.2714, allocations: 0.6605 MB / 430.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.2715, allocations: 12.03 kB / 430.8 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.568e-05/0.2715, allocations: 8.844 kB / 430.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.763e-05/0.2716, allocations: 70.72 kB / 430.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007849/0.2724, allocations: 116.7 kB / 431 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.2727, allocations: 206.7 kB / 431.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.2727, allocations: 25.03 kB / 431.2 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.263e-05/0.2728, allocations: 39.88 kB / 431.3 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.2734, allocations: 329.1 kB / 431.6 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.2734, allocations: 3.953 kB / 431.6 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/0.2734, allocations: 12 kB / 431.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.2734, allocations: 15.97 kB / 431.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004148/0.2738, allocations: 242.5 kB / 431.9 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.2757, allocations: 1.082 MB / 432.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004738/0.2761, allocations: 246.3 kB / 433.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.2763, allocations: 88.83 kB / 433.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001215/0.2764, allocations: 7.984 kB / 433.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.2764, allocations: 38.56 kB / 433.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.2764, allocations: 0 / 433.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001183/0.2776, allocations: 418.3 kB / 433.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.2777, allocations: 59.34 kB / 433.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.2778, allocations: 173.1 kB / 433.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.2779, allocations: 29.7 kB / 434 MB, free: 3.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.278, allocations: 172.4 kB / 434.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.995e-05/0.2781, allocations: 87.27 kB / 434.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.2781, allocations: 57.94 kB / 434.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.2783, allocations: 330.8 kB / 434.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.2784, allocations: 68.55 kB / 434.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.2786, allocations: 137 kB / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.2789, allocations: 212.4 kB / 435 MB, free: 2.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.2789, allocations: 7.938 kB / 435 MB, free: 2.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005524/0.2794, allocations: 323.7 kB / 435.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2795, allocations: 8 kB / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2795, allocations: 0 / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003042/0.2798, allocations: 72.81 kB / 435.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.2799, allocations: 48.09 kB / 435.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.282, allocations: 1.91 MB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.2821, allocations: 27.81 kB / 437.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.2821, allocations: 8.281 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001586/0.2823, allocations: 153.8 kB / 437.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.579e-05/0.2823, allocations: 19.84 kB / 437.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005443/0.2829, allocations: 285.6 kB / 437.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.2829, allocations: 4 kB / 437.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2829, allocations: 4 kB / 437.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2829, allocations: 0 / 437.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009485/0.2838, allocations: 0.6338 MB / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2838, allocations: 0 / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.2839, allocations: 23.98 kB / 438.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002349/0.2842, allocations: 80.73 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.2842, allocations: 4 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.2861, allocations: 1.907 MB / 440.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.2861, allocations: 4.031 kB / 440.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006347/0.2867, allocations: 440.5 kB / 440.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.87e-05/0.2868, allocations: 36.27 kB / 441 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.2868, allocations: 8 kB / 441 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.2869, allocations: 4 kB / 441 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.191e-05/0.287, allocations: 27.83 kB / 441 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.287, allocations: 8 kB / 441 MB, free: 12.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.2871, allocations: 131.5 kB / 441.2 MB, free: 12 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2871, allocations: 0 / 441.2 MB, free: 12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000472/0.2876, allocations: 95.72 kB / 441.3 MB, free: 11.9 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001057/0.2886, allocations: 1.004 MB / 442.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005967/0.2892, allocations: 338.6 kB / 442.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2892, allocations: 0 / 442.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003267/0.2896, allocations: 238.4 kB / 442.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.2899, allocations: 23.98 kB / 442.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/0.293, allocations: 2.518 MB / 445.4 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.2931, allocations: 150.4 kB / 445.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.93e-05/0.2932, allocations: 17.95 kB / 445.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.2933, allocations: 79.39 kB / 445.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2933, allocations: 0 / 445.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03145/0.3248, allocations: 5.406 MB / 451 MB, free: 2.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.88, allocations: 9.172 kB / 451 MB, free: 2.102 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.21164868096821]