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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 104.1 kB / 17.64 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001584/0.001584, allocations: 192 kB / 18.55 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 242.2 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2017/0.2017, allocations: 44.19 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 57.34 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1159, allocations: 60.83 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001681/0.1176, allocations: 483.7 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002226/0.1199, allocations: 1.299 MB / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.378e-05/0.1199, allocations: 0 / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.386e-05/0.12, allocations: 0 / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.897e-06/0.12, allocations: 0 / 471.1 MB, free: 12.5 MB / 350.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.001553/0.1215, allocations: 0.5803 MB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.383e-05/0.1216, allocations: 4 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.321e-05/0.1216, allocations: 7.984 kB / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.534e-05/0.1217, allocations: 3.984 kB / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.675e-05/0.1217, allocations: 0 / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.65e-06/0.1217, allocations: 0 / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01343/0.1351, allocations: 2.488 MB / 474.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.593e-05/0.1352, allocations: 0 / 474.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.52e-05/0.1352, allocations: 4 kB / 474.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005933/0.1358, allocations: 159.8 kB / 474.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.1358, allocations: 8 kB / 474.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1358, allocations: 0 / 474.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.1359, allocations: 0 / 474.4 MB, free: 9.766 MB / 350.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.0003997/0.1363, allocations: 381.2 kB / 474.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1363, allocations: 8.031 kB / 474.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.835e-05/0.1364, allocations: 38.75 kB / 474.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.539e-05/0.1364, allocations: 0.9375 kB / 474.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.116e-05/0.1365, allocations: 160.4 kB / 474.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.1365, allocations: 384 / 474.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.723e-06/0.1365, allocations: 4.375 kB / 475 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.396e-05/0.1366, allocations: 41.56 kB / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.1366, allocations: 0 / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.1366, allocations: 0 / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1366, allocations: 0 / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.16e-05/0.1367, allocations: 4 kB / 475 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001211/0.1368, allocations: 145.7 kB / 475.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.712e-05/0.1368, allocations: 18.58 kB / 475.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.491e-05/0.1369, allocations: 12.95 kB / 475.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.1369, allocations: 3.938 kB / 475.2 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.1369, allocations: 64.19 kB / 475.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1369, allocations: 0 / 475.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001676/0.1371, allocations: 59.41 kB / 475.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.1371, allocations: 77.11 kB / 475.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.752e-05/0.1372, allocations: 93.86 kB / 475.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.1372, allocations: 29.77 kB / 475.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.101e-05/0.1372, allocations: 84.14 kB / 475.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.1373, allocations: 4 kB / 475.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.1373, allocations: 13.7 kB / 475.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.503e-05/0.1374, allocations: 310.8 kB / 475.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.166e-05/0.1374, allocations: 4 kB / 475.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.971e-06/0.1374, allocations: 0 / 475.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.92e-05/0.1375, allocations: 72.14 kB / 476 MB, free: 7.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1375, allocations: 4.062 kB / 476 MB, free: 7.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.359e-05/0.1376, allocations: 63.33 kB / 476 MB, free: 7.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.1376, allocations: 33.7 kB / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1376, allocations: 0 / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.1376, allocations: 0 / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.1376, allocations: 0 / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.1377, allocations: 0 / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.744e-05/0.1377, allocations: 0 / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1377, allocations: 4 kB / 476.1 MB, free: 7.785 MB / 350.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 9.098e-05/0.1378, allocations: 135.6 kB / 476.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.025e-05/0.1378, allocations: 3.938 kB / 476.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.653e-05/0.1378, allocations: 19.06 kB / 476.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1378, allocations: 0 / 476.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1378, allocations: 0 / 476.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1379, allocations: 0 / 476.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.138, allocations: 145.6 kB / 476.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.138, allocations: 0 / 476.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.936e-06/0.138, allocations: 3.938 kB / 476.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.138, allocations: 7.984 kB / 476.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.138, allocations: 7.984 kB / 476.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.138, allocations: 0 / 476.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.138, allocations: 0 / 476.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001024/0.1381, allocations: 90.83 kB / 476.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.993e-05/0.1382, allocations: 88.94 kB / 476.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.1382, allocations: 0 / 476.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.888e-06/0.1382, allocations: 0 / 476.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.625e-05/0.1382, allocations: 4 kB / 476.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-06/0.1383, allocations: 8.031 kB / 476.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.621e-05/0.1383, allocations: 79.22 kB / 476.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1383, allocations: 0 / 476.7 MB, free: 7.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.1386, allocations: 67.98 kB / 476.7 MB, free: 7.027 MB / 350.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.001228/0.1399, allocations: 0.9262 MB / 477.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.818e-05/0.14, allocations: 59.41 kB / 477.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.14, allocations: 0 / 477.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.657e-05/0.14, allocations: 55.41 kB / 477.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.1402, allocations: 8.109 kB / 477.8 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003317/0.1405, allocations: 146.5 kB / 477.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.1407, allocations: 0.6729 MB / 478.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.612e-06/0.1407, allocations: 0 / 478.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.1408, allocations: 7.438 kB / 478.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1408, allocations: 0 / 478.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02743/0.1682, allocations: 3.111 MB / 481.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.863/8.032, allocations: 1.031 kB / 481.7 MB, free: 2.055 MB / 350.1 MB (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/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) Reference file matches