Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.001709/0.001709, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002089/0.002089, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.527/1.527, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2478/0.2478, allocations: 44.91 MB / 358.8 MB, free: 6.309 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002027/0.002027, allocations: 71.89 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2954, allocations: 65.46 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001543/0.2969, allocations: 482.2 kB / 0.5575 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006357/0.2976, allocations: 272.3 kB / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.081e-05/0.2976, allocations: 0 / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.451e-05/0.2976, allocations: 0 / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.879e-06/0.2976, allocations: 1 kB / 0.5577 GB, free: 7 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.2979, allocations: 59.52 kB / 0.5578 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.653e-05/0.2979, allocations: 6.016 kB / 0.5578 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.588e-05/0.298, allocations: 0.6562 kB / 0.5578 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.282e-05/0.298, allocations: 0.75 kB / 0.5578 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.936e-05/0.298, allocations: 0.8438 kB / 0.5578 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.604e-06/0.298, allocations: 0.75 kB / 0.5578 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.2982, allocations: 69.47 kB / 0.5579 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.282e-06/0.2982, allocations: 0 / 0.5579 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.814e-05/0.2982, allocations: 0 / 0.5579 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.2983, allocations: 53.45 kB / 0.5579 GB, free: 6.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.2983, allocations: 4 kB / 0.5579 GB, free: 6.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.509e-06/0.2983, allocations: 11.92 kB / 0.5579 GB, free: 6.863 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.2983, allocations: 0 / 0.5579 GB, free: 6.863 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.0003065/0.2986, allocations: 282 kB / 0.5582 GB, free: 6.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2987, allocations: 8.031 kB / 0.5582 GB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.054e-05/0.2987, allocations: 30.75 kB / 0.5582 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.111e-05/0.2987, allocations: 4.938 kB / 0.5582 GB, free: 6.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.362e-05/0.2988, allocations: 102.5 kB / 0.5583 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.2988, allocations: 8.312 kB / 0.5583 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.287e-06/0.2988, allocations: 384 / 0.5583 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.328e-05/0.2989, allocations: 34.27 kB / 0.5584 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2989, allocations: 3.938 kB / 0.5584 GB, free: 6.324 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-06/0.2989, allocations: 3.938 kB / 0.5584 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-06/0.2989, allocations: 0 / 0.5584 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.88e-05/0.2989, allocations: 7.984 kB / 0.5584 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001197/0.2991, allocations: 116.8 kB / 0.5585 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.355e-05/0.2991, allocations: 18.52 kB / 0.5585 GB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.064e-05/0.2991, allocations: 12.95 kB / 0.5585 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.492e-06/0.2991, allocations: 4 kB / 0.5585 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.447e-05/0.2992, allocations: 56.27 kB / 0.5586 GB, free: 6.039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.2992, allocations: 0 / 0.5586 GB, free: 6.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001542/0.2993, allocations: 67.33 kB / 0.5586 GB, free: 5.961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.2994, allocations: 77.11 kB / 0.5587 GB, free: 5.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.594e-05/0.2994, allocations: 93.81 kB / 0.5588 GB, free: 5.766 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.2994, allocations: 29.7 kB / 0.5588 GB, free: 5.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/0.2995, allocations: 88.27 kB / 0.5589 GB, free: 5.641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.258e-05/0.2995, allocations: 0 / 0.5589 GB, free: 5.641 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.2995, allocations: 9.719 kB / 0.5589 GB, free: 5.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2997, allocations: 314.8 kB / 0.5592 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-06/0.2997, allocations: 7.938 kB / 0.5592 GB, free: 5.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.708e-06/0.2997, allocations: 0 / 0.5592 GB, free: 5.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.763e-05/0.2997, allocations: 60.27 kB / 0.5593 GB, free: 5.227 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2997, allocations: 64 / 0.5593 GB, free: 5.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.535e-05/0.2998, allocations: 67.41 kB / 0.5594 GB, free: 5.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.2998, allocations: 33.69 kB / 0.5594 GB, free: 5.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2998, allocations: 3.938 kB / 0.5594 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.2999, allocations: 0 / 0.5594 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.2999, allocations: 0 / 0.5594 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.2999, allocations: 0 / 0.5594 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.833e-05/0.2999, allocations: 4 kB / 0.5594 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-06/0.2999, allocations: 0 / 0.5594 GB, free: 5.102 MB / 398.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 8.507e-05/0.3, allocations: 139.5 kB / 0.5595 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.458e-06/0.3, allocations: 4 kB / 0.5595 GB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.082e-05/0.3, allocations: 10.88 kB / 0.5595 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.3, allocations: 0 / 0.5595 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.3, allocations: 0 / 0.5595 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3, allocations: 3.984 kB / 0.5596 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.263e-05/0.3001, allocations: 120.8 kB / 0.5597 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3001, allocations: 3.938 kB / 0.5597 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3001, allocations: 0 / 0.5597 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.3001, allocations: 4 kB / 0.5597 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.3001, allocations: 3.938 kB / 0.5597 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.3001, allocations: 4 kB / 0.5597 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3001, allocations: 0 / 0.5597 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001009/0.3002, allocations: 90.83 kB / 0.5598 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-06/0.3002, allocations: 0 / 0.5598 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.3002, allocations: 7.938 kB / 0.5598 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.3002, allocations: 0 / 0.5598 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.153e-05/0.3002, allocations: 0 / 0.5598 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.3003, allocations: 11.95 kB / 0.5598 GB, free: 4.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.302e-05/0.3003, allocations: 75.28 kB / 0.5599 GB, free: 4.547 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3003, allocations: 0 / 0.5599 GB, free: 4.547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002122/0.3005, allocations: 23.94 kB / 0.5599 GB, free: 4.523 MB / 398.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.000939/0.3014, allocations: 0.8056 MB / 0.5607 GB, free: 3.754 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.955e-05/0.3015, allocations: 67.41 kB / 0.5607 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3015, allocations: 0 / 0.5607 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.025e-05/0.3016, allocations: 59.33 kB / 0.5608 GB, free: 3.605 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.3017, allocations: 11.94 kB / 0.5608 GB, free: 3.594 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002823/0.302, allocations: 122.6 kB / 0.5609 GB, free: 3.434 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.3023, allocations: 0.6729 MB / 0.5616 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.799e-06/0.3023, allocations: 0 / 0.5616 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.305e-05/0.3023, allocations: 7.438 kB / 0.5616 GB, free: 2.727 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3023, allocations: 4.125 kB / 0.5616 GB, free: 2.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.3285, allocations: 1.753 MB / 0.5633 GB, free: 1.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.61, allocations: 2.578 kB / 0.5633 GB, free: 1.102 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.60726699299994]