Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.00203/0.00203, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002071/0.002071, allocations: 210.7 kB / 23.72 MB, free: 4.391 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.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2227/0.2227, allocations: 44.94 MB / 358.8 MB, free: 6.035 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.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",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.002384/0.002384, allocations: 63.91 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.347, allocations: 65.47 MB / 0.5569 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001772/0.3488, allocations: 495.8 kB / 0.5574 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.3513, allocations: 1.26 MB / 0.5586 GB, free: 5.777 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.994e-05/0.3513, allocations: 0 / 0.5586 GB, free: 5.777 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.19e-05/0.3513, allocations: 0 / 0.5586 GB, free: 5.777 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.789e-06/0.3514, allocations: 0 / 0.5586 GB, free: 5.777 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001426/0.3528, allocations: 0.5842 MB / 0.5592 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.482e-05/0.3528, allocations: 4 kB / 0.5592 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.338e-05/0.3529, allocations: 3.984 kB / 0.5592 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.515e-05/0.3529, allocations: 8 kB / 0.5592 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.136e-05/0.3529, allocations: 3.984 kB / 0.5592 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-06/0.3529, allocations: 0 / 0.5592 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01683/0.3697, allocations: 2.548 MB / 0.5617 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.354e-05/0.3697, allocations: 0 / 0.5617 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.702e-05/0.3698, allocations: 0 / 0.5617 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003795/0.3702, allocations: 163.7 kB / 0.5619 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3702, allocations: 0 / 0.5619 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3702, allocations: 4 kB / 0.5619 GB, free: 2.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.3702, allocations: 0 / 0.5619 GB, free: 2.988 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.0004557/0.3706, allocations: 311.8 kB / 0.5622 GB, free: 2.648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.3707, allocations: 12.03 kB / 0.5622 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.189e-05/0.3707, allocations: 34.69 kB / 0.5622 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.3707, allocations: 0.9375 kB / 0.5622 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.788e-05/0.3708, allocations: 102.5 kB / 0.5623 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.3708, allocations: 384 / 0.5623 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.3709, allocations: 4.375 kB / 0.5623 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.371, allocations: 63.27 kB / 0.5624 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.371, allocations: 4 kB / 0.5624 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.371, allocations: 0 / 0.5624 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.371, allocations: 7.984 kB / 0.5624 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.661e-05/0.371, allocations: 25.7 kB / 0.5624 GB, free: 2.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.3712, allocations: 116.8 kB / 0.5625 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.064e-05/0.3713, allocations: 44.31 kB / 0.5626 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.589e-05/0.3713, allocations: 38.48 kB / 0.5626 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.3713, allocations: 8 kB / 0.5626 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.477e-05/0.3714, allocations: 56.27 kB / 0.5627 GB, free: 2.008 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.3714, allocations: 0 / 0.5627 GB, free: 2.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002773/0.3717, allocations: 118.8 kB / 0.5628 GB, free: 1.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.3717, allocations: 81.09 kB / 0.5629 GB, free: 1.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.44e-05/0.3718, allocations: 89.86 kB / 0.5629 GB, free: 1.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3718, allocations: 29.7 kB / 0.563 GB, free: 1.637 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.222e-05/0.3719, allocations: 80.14 kB / 0.5631 GB, free: 1.555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/0.3719, allocations: 0 / 0.5631 GB, free: 1.555 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.243e-05/0.3719, allocations: 21.66 kB / 0.5631 GB, free: 1.527 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3721, allocations: 310.8 kB / 0.5634 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.486e-05/0.3721, allocations: 25.7 kB / 0.5634 GB, free: 1.184 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.988e-05/0.3721, allocations: 29.64 kB / 0.5634 GB, free: 1.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.159e-05/0.3722, allocations: 68.44 kB / 0.5635 GB, free: 1.066 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.3722, allocations: 4 kB / 0.5635 GB, free: 1.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001015/0.3723, allocations: 93.05 kB / 0.5636 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.164e-05/0.3723, allocations: 33.7 kB / 0.5636 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3723, allocations: 0 / 0.5636 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.3724, allocations: 0 / 0.5636 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.326e-06/0.3724, allocations: 3.984 kB / 0.5636 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.3724, allocations: 0 / 0.5636 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.893e-05/0.3724, allocations: 3.953 kB / 0.5636 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.3724, allocations: 0 / 0.5636 GB, free: 0.9062 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 0.0001111/0.3725, allocations: 143.5 kB / 0.5638 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.737e-06/0.3725, allocations: 7.875 kB / 0.5638 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.397e-05/0.3725, allocations: 3 kB / 0.5638 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3725, allocations: 4 kB / 0.5638 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3725, allocations: 0 / 0.5638 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.3725, allocations: 0 / 0.5638 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.3726, allocations: 120.8 kB / 0.5639 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3726, allocations: 0 / 0.5639 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.609e-06/0.3726, allocations: 7.938 kB / 0.5639 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3726, allocations: 0 / 0.5639 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.3726, allocations: 4 kB / 0.5639 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.3726, allocations: 0 / 0.5639 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3726, allocations: 0 / 0.5639 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000131/0.3728, allocations: 116.5 kB / 0.564 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-06/0.3728, allocations: 3.938 kB / 0.564 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.3728, allocations: 4 kB / 0.564 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.3728, allocations: 0 / 0.564 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.131e-05/0.3728, allocations: 0 / 0.564 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.3728, allocations: 0 / 0.564 GB, free: 420 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.823e-05/0.3729, allocations: 75.28 kB / 0.5641 GB, free: 344 kB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3729, allocations: 3.938 kB / 0.5641 GB, free: 340 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.3731, allocations: 75.89 kB / 0.5642 GB, free: 264 kB / 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.001392/0.3745, allocations: 0.9711 MB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001266/0.3747, allocations: 114.8 kB / 0.5652 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3747, allocations: 64 / 0.5652 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.412e-05/0.3747, allocations: 89.05 kB / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.3749, allocations: 0 / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003568/0.3752, allocations: 168.3 kB / 0.5655 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.298e-05/0.3753, allocations: 55.36 kB / 0.5655 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.541e-06/0.3753, allocations: 0 / 0.5655 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.066e-05/0.3753, allocations: 15.42 kB / 0.5655 GB, free: 14.79 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3753, allocations: 0 / 0.5655 GB, free: 14.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02861/0.4039, allocations: 3.676 MB / 0.5691 GB, free: 11.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.66, allocations: 0 / 0.5691 GB, free: 11.25 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_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_TestStrings.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.75904616015032]