Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.001237/0.001237, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002249/0.002249, allocations: 210.8 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2276/0.2276, allocations: 46.95 MB / 360.9 MB, free: 4.016 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 71.91 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2816, allocations: 66.03 MB / 0.5606 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001583/0.2832, allocations: 489 kB / 0.561 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.2854, allocations: 1.35 MB / 0.5623 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.332e-05/0.2854, allocations: 4 kB / 0.5624 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.809e-05/0.2854, allocations: 3.938 kB / 0.5624 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002035/0.2856, allocations: 11.98 kB / 0.5624 GB, free: 2.359 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.2867, allocations: 261 kB / 0.5626 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.401e-05/0.2867, allocations: 4 kB / 0.5626 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.06e-05/0.2868, allocations: 3.984 kB / 0.5626 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.068e-05/0.2868, allocations: 3.938 kB / 0.5626 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.355e-05/0.2869, allocations: 11.92 kB / 0.5626 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-06/0.2869, allocations: 0 / 0.5626 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004036/0.2909, allocations: 0.7273 MB / 0.5634 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.178e-05/0.2909, allocations: 3.938 kB / 0.5634 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.278e-05/0.2909, allocations: 3.984 kB / 0.5634 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000302/0.2912, allocations: 177.6 kB / 0.5635 GB, free: 1.309 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2912, allocations: 4 kB / 0.5635 GB, free: 1.305 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2912, allocations: 0 / 0.5635 GB, free: 1.305 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.2913, allocations: 0 / 0.5635 GB, free: 1.305 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003929/0.2916, allocations: 311.7 kB / 0.5638 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.2917, allocations: 12.03 kB / 0.5638 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.927e-05/0.2917, allocations: 30.75 kB / 0.5639 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.294e-05/0.2917, allocations: 4.875 kB / 0.5639 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.2918, allocations: 106.5 kB / 0.564 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-06/0.2918, allocations: 384 / 0.564 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.2919, allocations: 384 / 0.564 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.809e-05/0.2919, allocations: 71.33 kB / 0.564 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.292, allocations: 3.984 kB / 0.564 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-06/0.292, allocations: 0 / 0.564 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.292, allocations: 0 / 0.564 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.198e-05/0.292, allocations: 29.7 kB / 0.5641 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001227/0.2921, allocations: 116.7 kB / 0.5642 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.331e-05/0.2922, allocations: 56.23 kB / 0.5642 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.77e-05/0.2922, allocations: 30.56 kB / 0.5643 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.896e-06/0.2922, allocations: 3.938 kB / 0.5643 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.2923, allocations: 60.33 kB / 0.5643 GB, free: 324 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.2923, allocations: 4 kB / 0.5643 GB, free: 320 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001809/0.2924, allocations: 118.8 kB / 0.5644 GB, free: 176 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.2925, allocations: 85.05 kB / 0.5645 GB, free: 72 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.003e-05/0.2926, allocations: 89.86 kB / 0.5646 GB, free: 15.97 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.2926, allocations: 29.7 kB / 0.5646 GB, free: 15.94 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.617e-05/0.2926, allocations: 80.14 kB / 0.5647 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/0.2926, allocations: 7.984 kB / 0.5647 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.2927, allocations: 17.7 kB / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2928, allocations: 310.8 kB / 0.565 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.331e-05/0.2928, allocations: 25.95 kB / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.221e-05/0.2928, allocations: 37.7 kB / 0.5651 GB, free: 15.44 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.278e-05/0.2929, allocations: 64.27 kB / 0.5652 GB, free: 15.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2929, allocations: 0 / 0.5652 GB, free: 15.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.158e-05/0.293, allocations: 96.98 kB / 0.5653 GB, free: 15.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.293, allocations: 29.7 kB / 0.5653 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.293, allocations: 3.938 kB / 0.5653 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.293, allocations: 0 / 0.5653 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.293, allocations: 4 kB / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.293, allocations: 3.938 kB / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.486e-05/0.2931, allocations: 4.094 kB / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.2931, allocations: 0 / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.149e-05/0.2932, allocations: 143.5 kB / 0.5654 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.003e-05/0.2932, allocations: 3.938 kB / 0.5654 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.136e-05/0.2932, allocations: 3.156 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.2932, allocations: 0 / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2932, allocations: 0 / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.2932, allocations: 4 kB / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.2933, allocations: 116.8 kB / 0.5656 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-06/0.2933, allocations: 3.938 kB / 0.5656 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.2933, allocations: 4 kB / 0.5656 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.2933, allocations: 4 kB / 0.5656 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.2933, allocations: 3.938 kB / 0.5656 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.2933, allocations: 0 / 0.5656 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2933, allocations: 0 / 0.5656 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.2934, allocations: 120.5 kB / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.883e-06/0.2934, allocations: 7.938 kB / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.2934, allocations: 0 / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.094e-05/0.2935, allocations: 0 / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.444e-05/0.2935, allocations: 4 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.2935, allocations: 4 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.973e-05/0.2935, allocations: 79.31 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2935, allocations: 0 / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002864/0.2938, allocations: 63.8 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/0.2949, allocations: 0.8928 MB / 0.5667 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001283/0.295, allocations: 122.7 kB / 0.5668 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.295, allocations: 0 / 0.5668 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.333e-05/0.2951, allocations: 81.11 kB / 0.5669 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001239/0.2952, allocations: 4.125 kB / 0.5669 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/0.2955, allocations: 172.1 kB / 0.5671 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.457e-05/0.2956, allocations: 59.3 kB / 0.5671 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.323e-06/0.2956, allocations: 0 / 0.5671 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.29e-05/0.2956, allocations: 7.438 kB / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.2956, allocations: 0 / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.3249, allocations: 3.097 MB / 0.5702 GB, free: 10.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.35, allocations: 10.81 kB / 0.5702 GB, free: 10.18 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.17349143399042]