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.001613/0.001613, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.002122/0.002122, allocations: 192 kB / 18.56 MB, free: 4.434 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.477/1.477, allocations: 222.9 MB / 242.3 MB, free: 15.14 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.2185/0.2185, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 58.94 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1304, allocations: 60.83 MB / 469.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001812/0.1323, allocations: 483.7 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.1348, allocations: 1.295 MB / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.776e-05/0.1348, allocations: 0 / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.661e-05/0.1348, allocations: 0 / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.572e-06/0.1349, allocations: 4 kB / 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.001506/0.1364, allocations: 0.5803 MB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.998e-05/0.1364, allocations: 0 / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.488e-05/0.1365, allocations: 3.984 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.269e-05/0.1365, allocations: 8 kB / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.229e-05/0.1365, allocations: 3.984 kB / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.452e-06/0.1365, allocations: 0 / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0128/0.1493, allocations: 2.491 MB / 474.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.591e-05/0.1494, allocations: 0 / 474.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.865e-05/0.1494, allocations: 3.984 kB / 474.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004827/0.1499, allocations: 155.8 kB / 474.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/0.1499, allocations: 3.984 kB / 474.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1499, allocations: 0 / 474.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.1499, allocations: 0 / 474.4 MB, free: 9.77 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.0004235/0.1504, allocations: 385.2 kB / 474.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1504, allocations: 8.031 kB / 474.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.939e-05/0.1505, allocations: 34.75 kB / 474.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.1505, allocations: 0.9375 kB / 474.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.616e-05/0.1506, allocations: 160.4 kB / 474.9 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.1506, allocations: 4.375 kB / 474.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-06/0.1506, allocations: 4.375 kB / 475 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.478e-05/0.1507, allocations: 41.56 kB / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.1508, allocations: 0 / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.1508, allocations: 0 / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1508, allocations: 4 kB / 475 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.812e-05/0.1508, allocations: 4 kB / 475 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001284/0.1509, allocations: 141.7 kB / 475.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.093e-05/0.151, allocations: 18.61 kB / 475.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.737e-05/0.151, allocations: 8.844 kB / 475.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.151, allocations: 3.938 kB / 475.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.1511, allocations: 64.2 kB / 475.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1511, allocations: 4.062 kB / 475.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001655/0.1513, allocations: 63.39 kB / 475.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.1513, allocations: 81.11 kB / 475.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.438e-05/0.1514, allocations: 93.84 kB / 475.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.1514, allocations: 29.64 kB / 475.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.777e-05/0.1514, allocations: 80.14 kB / 475.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.1515, allocations: 0 / 475.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.209e-05/0.1515, allocations: 17.72 kB / 475.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.707e-05/0.1516, allocations: 315 kB / 475.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.639e-06/0.1516, allocations: 0 / 475.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.196e-06/0.1516, allocations: 0 / 475.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.665e-05/0.1517, allocations: 64.2 kB / 476 MB, free: 7.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.1517, allocations: 0 / 476 MB, free: 7.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.864e-05/0.1518, allocations: 75.27 kB / 476 MB, free: 7.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.1518, allocations: 29.7 kB / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-06/0.1518, allocations: 0 / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.1518, allocations: 4 kB / 476.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.01e-07/0.1518, allocations: 4.094 kB / 476.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1518, allocations: 0 / 476.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.438e-05/0.1519, allocations: 0 / 476.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.1519, allocations: 0 / 476.1 MB, free: 7.781 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 8.478e-05/0.152, allocations: 139.5 kB / 476.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.152, allocations: 3.938 kB / 476.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.252e-05/0.152, allocations: 7.078 kB / 476.2 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.152, allocations: 0 / 476.2 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.152, allocations: 0 / 476.2 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.152, allocations: 7.938 kB / 476.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.676e-05/0.1521, allocations: 145.7 kB / 476.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1521, allocations: 3.984 kB / 476.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.964e-06/0.1521, allocations: 3.938 kB / 476.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.1521, allocations: 0 / 476.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.1522, allocations: 4 kB / 476.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1522, allocations: 0 / 476.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1522, allocations: 0 / 476.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.1523, allocations: 94.83 kB / 476.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.365e-05/0.1523, allocations: 84.95 kB / 476.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.1523, allocations: 8 kB / 476.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.818e-06/0.1524, allocations: 0 / 476.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.1524, allocations: 0 / 476.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.1524, allocations: 0 / 476.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.823e-05/0.1524, allocations: 79.22 kB / 476.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1524, allocations: 0 / 476.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.1527, allocations: 71.98 kB / 476.7 MB, free: 7.031 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.001221/0.1539, allocations: 0.9299 MB / 477.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001075/0.1541, allocations: 63.41 kB / 477.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1541, allocations: 0 / 477.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.369e-05/0.1541, allocations: 59.39 kB / 477.8 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.1543, allocations: 4 kB / 477.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003755/0.1546, allocations: 146.5 kB / 477.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.1549, allocations: 0.669 MB / 478.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.265e-06/0.1549, allocations: 0 / 478.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.269e-05/0.1549, allocations: 11.44 kB / 478.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.155, allocations: 4.125 kB / 478.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02267/0.1776, allocations: 3.095 MB / 481.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.437/7.614, allocations: 5.094 kB / 481.7 MB, free: 2.059 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 & 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) 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) Reference file matches