Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001548/0.001548, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2249/0.2249, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 72.28 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1329, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001599/0.1346, allocations: 474.3 kB / 480.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.1367, allocations: 1.299 MB / 481.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.369e-05/0.1367, allocations: 0 / 481.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.497e-05/0.1368, allocations: 0 / 481.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.098e-06/0.1368, allocations: 0 / 481.9 MB, free: 3.418 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001269/0.1381, allocations: 0.5804 MB / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.786e-05/0.1381, allocations: 4 kB / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.896e-05/0.1382, allocations: 0 / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.247e-05/0.1382, allocations: 0 / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.786e-05/0.1382, allocations: 11.92 kB / 482.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.943e-06/0.1382, allocations: 0 / 482.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01259/0.1508, allocations: 2.488 MB / 485 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.1508, allocations: 0 / 485 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.1509, allocations: 7.984 kB / 485 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003481/0.1512, allocations: 159.8 kB / 485.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.057e-05/0.1512, allocations: 4 kB / 485.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1512, allocations: 3.938 kB / 485.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.1513, allocations: 0 / 485.1 MB, free: 0.6797 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.000336/0.1516, allocations: 373.3 kB / 485.5 MB, free: 268 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.1516, allocations: 8.031 kB / 485.5 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.345e-05/0.1517, allocations: 38.75 kB / 485.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.183e-05/0.1517, allocations: 0.9375 kB / 485.6 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.652e-05/0.1518, allocations: 160.4 kB / 485.7 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.1518, allocations: 4.375 kB / 485.7 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-06/0.1518, allocations: 4.359 kB / 485.7 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.563e-05/0.1519, allocations: 33.64 kB / 485.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.919e-06/0.1519, allocations: 0 / 485.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.5e-06/0.1519, allocations: 0 / 485.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1519, allocations: 0 / 485.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.273e-05/0.152, allocations: 3.938 kB / 485.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001082/0.1521, allocations: 145.7 kB / 485.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.493e-05/0.1521, allocations: 30.55 kB / 485.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.541e-05/0.1522, allocations: 8.953 kB / 485.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.1522, allocations: 3.938 kB / 485.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.1522, allocations: 60.27 kB / 486 MB, free: 15.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1522, allocations: 3.938 kB / 486 MB, free: 15.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001568/0.1524, allocations: 63.34 kB / 486.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.1524, allocations: 85.03 kB / 486.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.695e-05/0.1525, allocations: 97.98 kB / 486.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.1525, allocations: 25.7 kB / 486.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.1526, allocations: 80.14 kB / 486.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.1526, allocations: 7.984 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-05/0.1526, allocations: 9.719 kB / 486.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1528, allocations: 310.8 kB / 486.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.112e-05/0.1528, allocations: 4 kB / 486.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-06/0.1528, allocations: 0 / 486.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.999e-05/0.1528, allocations: 68.33 kB / 486.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1528, allocations: 3.938 kB / 486.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.471e-05/0.1529, allocations: 63.33 kB / 486.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.153, allocations: 33.7 kB / 486.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.153, allocations: 0 / 486.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.153, allocations: 0 / 486.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.153, allocations: 0 / 486.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.153, allocations: 0 / 486.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.281e-05/0.153, allocations: 0 / 486.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.153, allocations: 8.031 kB / 486.8 MB, free: 14.7 MB / 366.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 7.594e-05/0.1531, allocations: 135.5 kB / 487 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.1531, allocations: 3.938 kB / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.009e-05/0.1531, allocations: 11.12 kB / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-06/0.1532, allocations: 0 / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1532, allocations: 0 / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.1532, allocations: 0 / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.561e-05/0.1533, allocations: 145.7 kB / 487.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1533, allocations: 0 / 487.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.874e-06/0.1533, allocations: 3.938 kB / 487.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1533, allocations: 8 kB / 487.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.1533, allocations: 0 / 487.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1533, allocations: 0 / 487.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1533, allocations: 3.938 kB / 487.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.737e-05/0.1534, allocations: 90.83 kB / 487.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.406e-05/0.1534, allocations: 81.05 kB / 487.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.1535, allocations: 3.938 kB / 487.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.367e-06/0.1535, allocations: 4.031 kB / 487.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.313e-05/0.1535, allocations: 4 kB / 487.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.1535, allocations: 0 / 487.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.08e-05/0.1535, allocations: 75.28 kB / 487.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1535, allocations: 0 / 487.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.1538, allocations: 67.98 kB / 487.5 MB, free: 13.96 MB / 366.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.001066/0.1549, allocations: 0.9282 MB / 488.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.545e-05/0.155, allocations: 63.41 kB / 488.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.155, allocations: 0 / 488.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.098e-05/0.1551, allocations: 67.44 kB / 488.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/0.1552, allocations: 3.938 kB / 488.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003026/0.1555, allocations: 138.5 kB / 488.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.1558, allocations: 0.669 MB / 489.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.185e-06/0.1558, allocations: 0 / 489.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.845e-05/0.1558, allocations: 11.44 kB / 489.3 MB, free: 12.03 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1558, allocations: 3.938 kB / 489.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.175, allocations: 3.092 MB / 492.4 MB, free: 8.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.553/7.728, allocations: 4.062 kB / 492.4 MB, free: 8.977 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches