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.001588/0.001588, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002033/0.002033, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.2262/0.2262, allocations: 44.91 MB / 358.8 MB, free: 6.273 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.002133/0.002133, allocations: 59.91 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3103, allocations: 65.48 MB / 0.557 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001602/0.3119, allocations: 490.7 kB / 0.5575 GB, free: 7.152 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.3145, allocations: 1.334 MB / 0.5588 GB, free: 5.949 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.405e-05/0.3145, allocations: 0 / 0.5588 GB, free: 5.949 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.562e-05/0.3145, allocations: 4 kB / 0.5588 GB, free: 5.945 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.19e-06/0.3145, allocations: 4 kB / 0.5588 GB, free: 5.941 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.001494/0.316, allocations: 0.5726 MB / 0.5593 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.579e-05/0.316, allocations: 8 kB / 0.5593 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.3161, allocations: 4 kB / 0.5594 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.539e-05/0.3161, allocations: 7.922 kB / 0.5594 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.856e-05/0.3161, allocations: 3.938 kB / 0.5594 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.14e-06/0.3161, allocations: 0 / 0.5594 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01735/0.3335, allocations: 2.548 MB / 0.5619 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.663e-05/0.3335, allocations: 3.984 kB / 0.5619 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.153e-05/0.3335, allocations: 4 kB / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005311/0.334, allocations: 159.7 kB / 0.562 GB, free: 3.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.334, allocations: 0 / 0.562 GB, free: 3.156 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.334, allocations: 4 kB / 0.562 GB, free: 3.152 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.3341, allocations: 0 / 0.562 GB, free: 3.152 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.0004313/0.3345, allocations: 303.8 kB / 0.5623 GB, free: 2.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3345, allocations: 16.03 kB / 0.5623 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.716e-05/0.3346, allocations: 30.75 kB / 0.5624 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.155e-05/0.3346, allocations: 0.9375 kB / 0.5624 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.688e-05/0.3347, allocations: 106.5 kB / 0.5625 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-06/0.3347, allocations: 384 / 0.5625 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.3347, allocations: 4.375 kB / 0.5625 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.3348, allocations: 29.64 kB / 0.5625 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.3348, allocations: 3.938 kB / 0.5625 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.3348, allocations: 3.938 kB / 0.5625 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3348, allocations: 4 kB / 0.5625 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.07e-05/0.3349, allocations: 4 kB / 0.5625 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001402/0.335, allocations: 120.8 kB / 0.5626 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.3351, allocations: 18.61 kB / 0.5626 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.628e-05/0.3351, allocations: 4.859 kB / 0.5626 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.3351, allocations: 3.938 kB / 0.5626 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.863e-05/0.3352, allocations: 56.27 kB / 0.5627 GB, free: 2.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3352, allocations: 4 kB / 0.5627 GB, free: 2.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002078/0.3354, allocations: 71.39 kB / 0.5628 GB, free: 2.227 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/0.3355, allocations: 81.11 kB / 0.5628 GB, free: 2.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.209e-05/0.3355, allocations: 89.86 kB / 0.5629 GB, free: 2.031 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.3356, allocations: 25.7 kB / 0.563 GB, free: 2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.176e-05/0.3356, allocations: 80.14 kB / 0.563 GB, free: 1.918 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.3356, allocations: 0 / 0.563 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.3357, allocations: 21.66 kB / 0.5631 GB, free: 1.891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3358, allocations: 315 kB / 0.5634 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.132e-05/0.3358, allocations: 0 / 0.5634 GB, free: 1.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.851e-06/0.3358, allocations: 0 / 0.5634 GB, free: 1.574 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.293e-05/0.3359, allocations: 68.19 kB / 0.5634 GB, free: 1.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3359, allocations: 0 / 0.5634 GB, free: 1.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001037/0.336, allocations: 71.34 kB / 0.5635 GB, free: 1.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.336, allocations: 29.7 kB / 0.5635 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.336, allocations: 0 / 0.5635 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.3361, allocations: 4.094 kB / 0.5635 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.3361, allocations: 4 kB / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3361, allocations: 0 / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.639e-05/0.3361, allocations: 3.953 kB / 0.5635 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.3361, allocations: 3.984 kB / 0.5635 GB, free: 1.359 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.0001319/0.3362, allocations: 135.5 kB / 0.5637 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.3362, allocations: 3.938 kB / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.243e-05/0.3363, allocations: 3 kB / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.3363, allocations: 0 / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3363, allocations: 4 kB / 0.5637 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.3363, allocations: 3.984 kB / 0.5637 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.3364, allocations: 120.8 kB / 0.5638 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3364, allocations: 3.938 kB / 0.5638 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.645e-06/0.3364, allocations: 3.938 kB / 0.5638 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3364, allocations: 0 / 0.5638 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.3364, allocations: 0 / 0.5638 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.3364, allocations: 3.938 kB / 0.5638 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3364, allocations: 4 kB / 0.5638 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00012/0.3365, allocations: 90.83 kB / 0.5639 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.869e-06/0.3365, allocations: 7.938 kB / 0.5639 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.3365, allocations: 4 kB / 0.5639 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.137e-05/0.3366, allocations: 0 / 0.5639 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.522e-05/0.3366, allocations: 0 / 0.5639 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.3366, allocations: 0 / 0.5639 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.829e-05/0.3366, allocations: 75.28 kB / 0.564 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3366, allocations: 0 / 0.564 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003038/0.3369, allocations: 75.89 kB / 0.564 GB, free: 0.7461 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.001504/0.3384, allocations: 0.9375 MB / 0.565 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.3385, allocations: 59.39 kB / 0.565 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3385, allocations: 0 / 0.565 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.43e-05/0.3386, allocations: 55.41 kB / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.3387, allocations: 4 kB / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003711/0.3391, allocations: 134.6 kB / 0.5652 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.3395, allocations: 0.6728 MB / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.656e-06/0.3395, allocations: 128 / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.432e-05/0.3395, allocations: 15.44 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3395, allocations: 0 / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.3708, allocations: 3.257 MB / 0.5691 GB, free: 11.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.7, allocations: 13.67 kB / 0.5691 GB, free: 11.69 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.598951749001571]