Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 105 kB / 21.96 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 210.6 kB / 25.25 MB, free: 3.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 51.91 kB / 348 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2685, allocations: 49.16 MB / 397.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003756/0.2723, allocations: 2.52 MB / 399.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.274, allocations: 1.113 MB / 400.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2741, allocations: 6.5 kB / 400.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001376/0.2755, allocations: 0.5845 MB / 401.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003152/0.2758, allocations: 130.9 kB / 401.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.277, allocations: 0.6102 MB / 402.1 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.2774, allocations: 294.8 kB / 402.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004354/0.2778, allocations: 250.8 kB / 402.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.278, allocations: 128.4 kB / 402.8 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.2782, allocations: 166.6 kB / 402.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.2783, allocations: 24.97 kB / 402.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003864/0.2787, allocations: 179.6 kB / 403.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.554e-05/0.2787, allocations: 57.55 kB / 403.2 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.2789, allocations: 117.9 kB / 403.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006261/0.2795, allocations: 0.4993 MB / 403.8 MB, free: 4.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2795, allocations: 4 kB / 403.8 MB, free: 4.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2795, allocations: 0 / 403.8 MB, free: 4.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.2795, allocations: 1.375 kB / 403.8 MB, free: 4.883 MB / 318.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.00151/0.281, allocations: 0.6522 MB / 404.4 MB, free: 4.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.2811, allocations: 9.406 kB / 404.5 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.491e-05/0.2811, allocations: 12.72 kB / 404.5 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.61e-05/0.2811, allocations: 73.73 kB / 404.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000755/0.2819, allocations: 115 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.2822, allocations: 207.9 kB / 404.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.2822, allocations: 26.78 kB / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.133e-05/0.2823, allocations: 33.12 kB / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.2828, allocations: 333.5 kB / 405.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.2828, allocations: 4.969 kB / 405.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.2829, allocations: 10.12 kB / 405.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.2829, allocations: 9.438 kB / 405.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003809/0.2833, allocations: 244.3 kB / 405.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.2849, allocations: 1.088 MB / 406.6 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004732/0.2854, allocations: 238.5 kB / 406.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.2856, allocations: 88.92 kB / 406.9 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.556e-05/0.2856, allocations: 12.91 kB / 406.9 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/0.2857, allocations: 36.69 kB / 407 MB, free: 2.883 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.2857, allocations: 0 / 407 MB, free: 2.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001165/0.2868, allocations: 416.9 kB / 407.4 MB, free: 2.719 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/0.2868, allocations: 55.55 kB / 407.4 MB, free: 2.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.287, allocations: 174 kB / 407.6 MB, free: 2.527 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.287, allocations: 30.92 kB / 407.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.168e-05/0.2871, allocations: 174 kB / 407.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.038e-05/0.2871, allocations: 93.48 kB / 407.9 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.833e-05/0.2872, allocations: 57.73 kB / 407.9 MB, free: 2.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.489e-05/0.2873, allocations: 328.9 kB / 408.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.2874, allocations: 65.73 kB / 408.3 MB, free: 1.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.2875, allocations: 135.7 kB / 408.5 MB, free: 1.785 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.2878, allocations: 211.1 kB / 408.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2878, allocations: 3.938 kB / 408.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005015/0.2883, allocations: 325.3 kB / 409 MB, free: 1.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.2883, allocations: 6.531 kB / 409 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2883, allocations: 6.75 kB / 409 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003085/0.2886, allocations: 79.55 kB / 409.1 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.2888, allocations: 45.45 kB / 409.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.2904, allocations: 1.915 MB / 411 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001413/0.2905, allocations: 28.08 kB / 411.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.2906, allocations: 8.281 kB / 411.1 MB, free: 15.74 MB / 334.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.0001551/0.2907, allocations: 153 kB / 411.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.603e-05/0.2908, allocations: 19.12 kB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005686/0.2913, allocations: 280.1 kB / 411.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.2913, allocations: 2.594 kB / 411.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2913, allocations: 1.312 kB / 411.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2914, allocations: 2.516 kB / 411.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009846/0.2923, allocations: 0.6313 MB / 412.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.2923, allocations: 3.984 kB / 412.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.2924, allocations: 22.67 kB / 412.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002366/0.2927, allocations: 80.92 kB / 412.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.2927, allocations: 5.875 kB / 412.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001967/0.2947, allocations: 1.904 MB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2947, allocations: 2.078 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006689/0.2953, allocations: 454.3 kB / 414.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.2954, allocations: 33.27 kB / 414.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.2954, allocations: 7.156 kB / 414.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.2956, allocations: 8.969 kB / 414.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.116e-05/0.2956, allocations: 21.06 kB / 414.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.2956, allocations: 4.828 kB / 414.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.2957, allocations: 130.4 kB / 414.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2957, allocations: 1.344 kB / 414.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005211/0.2963, allocations: 97.5 kB / 414.9 MB, free: 12.85 MB / 334.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.00105/0.2973, allocations: 0.9891 MB / 415.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006153/0.2979, allocations: 341.2 kB / 416.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2979, allocations: 13.06 kB / 416.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.2983, allocations: 233.7 kB / 416.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.2986, allocations: 17.55 kB / 416.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.3017, allocations: 2.517 MB / 419 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/0.3019, allocations: 152.7 kB / 419.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.996e-05/0.302, allocations: 20.11 kB / 419.2 MB, free: 9.566 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.3021, allocations: 71.44 kB / 419.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3021, allocations: 1.031 kB / 419.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03068/0.3328, allocations: 5.313 MB / 424.6 MB, free: 6.578 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.91, allocations: 11.38 kB / 424.6 MB, free: 6.57 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.345406514941715]