Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001085/0.001085, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009417/0.0009417, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9142/0.9142, allocations: 177.1 MB / 204.3 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.25/0.25, allocations: 34.25 MB / 294.9 MB, free: 0.7227 MB / 266.7 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.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 442.1 MB, free: 1.703 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.166e-05, allocations: 2.281 kB / 442.1 MB, free: 1.699 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001485/0.001507, allocations: 491.1 kB / 442.6 MB, free: 1.223 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1688/0.1703, allocations: 1.258 MB / 443.9 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.034e-05/0.1704, allocations: 0 / 443.9 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.805e-05/0.1704, allocations: 2.875 kB / 443.9 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.702e-06/0.1704, allocations: 2.031 kB / 443.9 MB, free: 43.15 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:4:3-219: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.001188/0.1716, allocations: 0.5867 MB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.414e-05/0.1716, allocations: 5.203 kB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.206e-05/0.1716, allocations: 9.203 kB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.524e-05/0.1717, allocations: 0 / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.954e-05/0.1717, allocations: 2.719 kB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.183e-06/0.1717, allocations: 0 / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006016/0.1777, allocations: 2.536 MB / 447 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.916e-06/0.1777, allocations: 0 / 447 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.977e-05/0.1777, allocations: 0.5625 kB / 447 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002201/0.178, allocations: 209.3 kB / 447.2 MB, free: 42.84 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.178, allocations: 0 / 447.2 MB, free: 42.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.178, allocations: 2.875 kB / 447.2 MB, free: 42.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.178, allocations: 0 / 447.2 MB, free: 42.84 MB / 410.7 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.0002192/0.1782, allocations: 308 kB / 447.5 MB, free: 42.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1782, allocations: 10.84 kB / 447.5 MB, free: 42.53 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.662e-05/0.1782, allocations: 30.75 kB / 447.6 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.301e-05/0.1783, allocations: 0.9375 kB / 447.6 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.45e-05/0.1783, allocations: 108.4 kB / 447.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.1783, allocations: 384 / 447.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.362e-06/0.1783, allocations: 384 / 447.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.717e-05/0.1784, allocations: 70.14 kB / 447.7 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.1784, allocations: 4.359 kB / 447.7 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.1784, allocations: 3.938 kB / 447.7 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.1784, allocations: 0 / 447.7 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.612e-05/0.1784, allocations: 28.27 kB / 447.8 MB, free: 42.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.324e-05/0.1785, allocations: 116.8 kB / 447.9 MB, free: 42.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.213e-05/0.1785, allocations: 49.67 kB / 447.9 MB, free: 42.04 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.078e-05/0.1785, allocations: 33.38 kB / 448 MB, free: 42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-06/0.1785, allocations: 3.938 kB / 448 MB, free: 42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.1786, allocations: 59.08 kB / 448 MB, free: 41.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.1786, allocations: 4 kB / 448 MB, free: 41.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000131/0.1787, allocations: 125.3 kB / 448.2 MB, free: 41.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.173e-05/0.1787, allocations: 77.11 kB / 448.2 MB, free: 41.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.281e-05/0.1787, allocations: 89.86 kB / 448.3 MB, free: 41.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.769e-06/0.1787, allocations: 25.7 kB / 448.3 MB, free: 41.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.4e-06/0.1787, allocations: 82.55 kB / 448.4 MB, free: 41.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.1787, allocations: 1.375 kB / 448.4 MB, free: 41.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.848e-05/0.1788, allocations: 16.59 kB / 448.4 MB, free: 41.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.444e-05/0.1788, allocations: 314.1 kB / 448.8 MB, free: 41.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.847e-06/0.1788, allocations: 28.55 kB / 448.8 MB, free: 41.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-06/0.1788, allocations: 29.83 kB / 448.8 MB, free: 41.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.319e-05/0.1788, allocations: 59.11 kB / 448.9 MB, free: 41.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1788, allocations: 0 / 448.9 MB, free: 41.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.952e-05/0.1789, allocations: 96 kB / 449 MB, free: 40.92 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1789, allocations: 31.42 kB / 449 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-06/0.1789, allocations: 0 / 449 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.1789, allocations: 3.938 kB / 449 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1789, allocations: 3.938 kB / 449 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1789, allocations: 6.875 kB / 449 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.224e-05/0.1789, allocations: 7.281 kB / 449 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.1789, allocations: 0 / 449 MB, free: 40.88 MB / 410.7 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 3.741e-05/0.179, allocations: 135.5 kB / 449.1 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-06/0.179, allocations: 0 / 449.1 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.031e-05/0.179, allocations: 9.906 kB / 449.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.179, allocations: 3.938 kB / 449.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.179, allocations: 0 / 449.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.179, allocations: 0 / 449.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.047e-05/0.179, allocations: 118.9 kB / 449.3 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-07/0.179, allocations: 0 / 449.3 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-07/0.179, allocations: 3.281 kB / 449.3 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.21e-07/0.179, allocations: 4 kB / 449.3 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/0.179, allocations: 0 / 449.3 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.179, allocations: 6.781 kB / 449.3 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.179, allocations: 0 / 449.3 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.07e-05/0.1791, allocations: 115.3 kB / 449.4 MB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.466e-06/0.1791, allocations: 7.234 kB / 449.4 MB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.127e-06/0.1791, allocations: 2.875 kB / 449.4 MB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.939e-06/0.1791, allocations: 3.938 kB / 449.4 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.869e-06/0.1791, allocations: 0 / 449.4 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-06/0.1791, allocations: 2.938 kB / 449.4 MB, free: 40.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.362e-06/0.1791, allocations: 83.25 kB / 449.5 MB, free: 40.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1791, allocations: 3 kB / 449.5 MB, free: 40.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001664/0.1793, allocations: 67.45 kB / 449.6 MB, free: 40.33 MB / 410.7 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.0005935/0.1799, allocations: 0.9729 MB / 450.5 MB, free: 39.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.78e-05/0.1799, allocations: 116 kB / 450.7 MB, free: 39.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.1799, allocations: 0 / 450.7 MB, free: 39.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.311e-05/0.1799, allocations: 87.16 kB / 450.7 MB, free: 39.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.974e-05/0.18, allocations: 10.73 kB / 450.7 MB, free: 39.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002222/0.1803, allocations: 161.6 kB / 450.9 MB, free: 39.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.189e-05/0.1803, allocations: 58.23 kB / 451 MB, free: 39.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.508e-06/0.1803, allocations: 0 / 451 MB, free: 39.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.245e-05/0.1803, allocations: 11.41 kB / 451 MB, free: 39.12 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1803, allocations: 0 / 451 MB, free: 39.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01378/0.1941, allocations: 3.822 MB / 454.8 MB, free: 38.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.937/7.131, allocations: 10.94 kB / 454.8 MB, free: 38.01 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.csv: Error: Error opening file: ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.csv " [Timeout remaining time 660] "" Variables in the reference:time Variables in the result: [Calling sys.exit(0), Time elapsed: 9.142155115492642]