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.0009238/0.0009238, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008503/0.0008503, allocations: 174.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.8933/0.8933, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2253/0.2253, allocations: 32.79 MB / 293.5 MB, free: 1.211 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 439.5 MB, free: 4.297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.069e-05/2.223e-05, allocations: 4.391 kB / 439.5 MB, free: 4.293 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001122/0.001144, allocations: 493 kB / 440 MB, free: 3.812 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.002891, allocations: 1.262 MB / 441.3 MB, free: 2.543 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.789e-05/0.002909, allocations: 4 kB / 441.3 MB, free: 2.539 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.8e-05/0.002927, allocations: 0 / 441.3 MB, free: 2.539 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.213e-06/0.002934, allocations: 0 / 441.3 MB, free: 2.539 MB / 410.7 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.001394/0.004328, allocations: 0.5905 MB / 441.9 MB, free: 1.949 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.638e-05/0.004374, allocations: 0 / 441.9 MB, free: 1.949 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.532e-05/0.004409, allocations: 3.984 kB / 441.9 MB, free: 1.945 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.662e-05/0.004436, allocations: 4 kB / 441.9 MB, free: 1.941 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.033e-05/0.004456, allocations: 0 / 441.9 MB, free: 1.941 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.944e-06/0.004463, allocations: 4 kB / 441.9 MB, free: 1.938 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1719/0.1763, allocations: 2.532 MB / 444.4 MB, free: 44.55 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.1764, allocations: 0 / 444.4 MB, free: 44.55 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.513e-05/0.1764, allocations: 0.9375 kB / 444.4 MB, free: 44.55 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003142/0.1767, allocations: 201.4 kB / 444.6 MB, free: 44.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.1767, allocations: 2.688 kB / 444.6 MB, free: 44.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1767, allocations: 0 / 444.6 MB, free: 44.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.1767, allocations: 1.5 kB / 444.6 MB, free: 44.55 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.0002307/0.1769, allocations: 306.7 kB / 444.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.177, allocations: 12.91 kB / 444.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.983e-05/0.177, allocations: 30.75 kB / 445 MB, free: 44.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.612e-05/0.177, allocations: 1.5 kB / 445 MB, free: 44.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.407e-05/0.1771, allocations: 110.9 kB / 445.1 MB, free: 44.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-06/0.1771, allocations: 1.781 kB / 445.1 MB, free: 44.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.633e-06/0.1771, allocations: 1.719 kB / 445.1 MB, free: 44.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.101e-05/0.1771, allocations: 58.98 kB / 445.1 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.1772, allocations: 384 / 445.1 MB, free: 44.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-06/0.1772, allocations: 7.781 kB / 445.2 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1772, allocations: 3.125 kB / 445.2 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.793e-05/0.1772, allocations: 30.67 kB / 445.2 MB, free: 44.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.989e-05/0.1773, allocations: 117.2 kB / 445.3 MB, free: 43.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.397e-05/0.1773, allocations: 48.3 kB / 445.3 MB, free: 43.8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.252e-05/0.1773, allocations: 33.16 kB / 445.4 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-06/0.1773, allocations: 2.344 kB / 445.4 MB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.1773, allocations: 60.98 kB / 445.4 MB, free: 43.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.1773, allocations: 0 / 445.4 MB, free: 43.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001432/0.1775, allocations: 127.3 kB / 445.6 MB, free: 43.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/0.1775, allocations: 77.11 kB / 445.6 MB, free: 43.47 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.208e-05/0.1775, allocations: 91.55 kB / 445.7 MB, free: 43.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.687e-06/0.1775, allocations: 25.7 kB / 445.8 MB, free: 43.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.778e-06/0.1775, allocations: 80.14 kB / 445.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.1775, allocations: 2.594 kB / 445.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.008e-05/0.1775, allocations: 12.5 kB / 445.8 MB, free: 43.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.799e-05/0.1776, allocations: 321.8 kB / 446.2 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.035e-05/0.1776, allocations: 26.58 kB / 446.2 MB, free: 42.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.612e-06/0.1776, allocations: 28.27 kB / 446.2 MB, free: 42.87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.461e-05/0.1776, allocations: 60.33 kB / 446.3 MB, free: 42.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.1776, allocations: 2.875 kB / 446.3 MB, free: 42.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.461e-05/0.1777, allocations: 89.83 kB / 446.4 MB, free: 42.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.1777, allocations: 31.02 kB / 446.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1777, allocations: 0 / 446.4 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1777, allocations: 8 kB / 446.4 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.1777, allocations: 1.5 kB / 446.4 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1777, allocations: 3.328 kB / 446.4 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.493e-05/0.1777, allocations: 7.203 kB / 446.4 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.1777, allocations: 5.125 kB / 446.4 MB, free: 42.67 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.92e-05/0.1778, allocations: 138.3 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-06/0.1778, allocations: 0 / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.155e-06/0.1778, allocations: 6.094 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.1778, allocations: 3.938 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1778, allocations: 0 / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1778, allocations: 3.281 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.337e-05/0.1778, allocations: 119.9 kB / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.31e-07/0.1778, allocations: 0 / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-07/0.1778, allocations: 10.53 kB / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.1778, allocations: 1.375 kB / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.531e-06/0.1778, allocations: 0 / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.1778, allocations: 3.938 kB / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.1778, allocations: 0 / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.936e-05/0.1779, allocations: 114.8 kB / 446.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-06/0.1779, allocations: 3.328 kB / 446.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.056e-05/0.1779, allocations: 3.625 kB / 446.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.741e-06/0.1779, allocations: 6.562 kB / 446.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.05e-05/0.1779, allocations: 0 / 446.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.1779, allocations: 6.078 kB / 446.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.564e-06/0.1779, allocations: 83.64 kB / 446.9 MB, free: 42.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1779, allocations: 0 / 446.9 MB, free: 42.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001872/0.1781, allocations: 67.58 kB / 447 MB, free: 42.15 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.0006921/0.1788, allocations: 0.9797 MB / 448 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.313e-05/0.1789, allocations: 115.6 kB / 448.1 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1789, allocations: 1.312 kB / 448.1 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.24e-05/0.1789, allocations: 83.3 kB / 448.2 MB, free: 41.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.91e-05/0.179, allocations: 6.844 kB / 448.2 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002474/0.1792, allocations: 163.9 kB / 448.3 MB, free: 41.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.425e-05/0.1793, allocations: 57.67 kB / 448.4 MB, free: 41.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.1e-06/0.1793, allocations: 7.938 kB / 448.4 MB, free: 41.01 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.473e-05/0.1793, allocations: 11.38 kB / 448.4 MB, free: 41 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/0.1793, allocations: 0 / 448.4 MB, free: 41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01628/0.1956, allocations: 3.833 MB / 452.2 MB, free: 39.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.72/6.916, allocations: 6.891 kB / 452.2 MB, free: 39.93 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins/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: 8.79348221886903]