Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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) 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(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",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.001091/0.001091, allocations: 107.3 kB / 16.92 MB, free: 5.742 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.001059/0.001059, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.448/1.448, allocations: 222.9 MB / 241.5 MB, free: 15.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 46.86 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1275, allocations: 49.44 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003324/0.1309, allocations: 1.677 MB / 351.8 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004751/0.1314, allocations: 163.4 kB / 352 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.1315, allocations: 11.88 kB / 352 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.113e-05/0.1316, allocations: 7.922 kB / 352 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.1317, allocations: 15.88 kB / 352 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.1321, allocations: 41.89 kB / 352.1 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000114/0.1322, allocations: 55.84 kB / 352.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.1323, allocations: 23.98 kB / 352.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.445e-05/0.1324, allocations: 27.88 kB / 352.2 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.1325, allocations: 23.84 kB / 352.2 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.1325, allocations: 4 kB / 352.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.758e-05/0.1325, allocations: 8 kB / 352.2 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.657e-05/0.1326, allocations: 19.92 kB / 352.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.952e-05/0.1326, allocations: 39.73 kB / 352.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.1328, allocations: 63.73 kB / 352.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1328, allocations: 3.984 kB / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1328, allocations: 0 / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1328, allocations: 3.938 kB / 352.3 MB, free: 2.148 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006608/0.1335, allocations: 391.3 kB / 352.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.1336, allocations: 12.03 kB / 352.7 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.6e-05/0.1336, allocations: 38.73 kB / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.763e-05/0.1337, allocations: 8.844 kB / 352.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.134, allocations: 200 kB / 353 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.876e-06/0.1341, allocations: 4.375 kB / 353 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.1341, allocations: 8.375 kB / 353 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/0.1345, allocations: 165.8 kB / 353.2 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.1345, allocations: 11.81 kB / 353.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.1345, allocations: 0 / 353.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1346, allocations: 4 kB / 353.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.1347, allocations: 35.97 kB / 353.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.1352, allocations: 381.7 kB / 353.6 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.1355, allocations: 115.9 kB / 353.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.1356, allocations: 58.61 kB / 353.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.1357, allocations: 0 / 353.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.1357, allocations: 42.5 kB / 353.8 MB, free: 496 kB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.263e-06/0.1357, allocations: 0 / 353.8 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004085/0.1361, allocations: 121.5 kB / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.439e-05/0.1362, allocations: 110.8 kB / 354 MB, free: 232 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.1364, allocations: 136.8 kB / 354.2 MB, free: 88 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.1364, allocations: 25.7 kB / 354.2 MB, free: 56 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.635e-05/0.1365, allocations: 88.12 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.1366, allocations: 16.05 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.785e-05/0.1366, allocations: 29.95 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1368, allocations: 318.8 kB / 354.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.266e-05/0.1368, allocations: 19.92 kB / 354.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.601e-05/0.1369, allocations: 63.72 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.1371, allocations: 99.59 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1371, allocations: 0 / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002109/0.1373, allocations: 109.4 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1373, allocations: 4 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1373, allocations: 4.281 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.1374, allocations: 8 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.459e-05/0.1375, allocations: 24.11 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.1375, allocations: 0 / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.187e-05/0.1375, allocations: 11.94 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.1375, allocations: 4 kB / 355 MB, free: 15.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001135/0.1377, allocations: 125.7 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.1378, allocations: 81.44 kB / 355.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.19e-05/0.1379, allocations: 20.7 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.1379, allocations: 4 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1379, allocations: 0 / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.1379, allocations: 4 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002705/0.1382, allocations: 181.5 kB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1382, allocations: 0 / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-05/0.1383, allocations: 23.98 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1383, allocations: 0 / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1383, allocations: 4 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1383, allocations: 0 / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1383, allocations: 0 / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004639/0.1388, allocations: 320.2 kB / 355.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.1389, allocations: 92.94 kB / 355.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.139, allocations: 8 kB / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.1391, allocations: 0 / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.1392, allocations: 8 kB / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.1392, allocations: 7.984 kB / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.1393, allocations: 106.4 kB / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1394, allocations: 0 / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.1397, allocations: 15.94 kB / 355.9 MB, free: 14.1 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0008865/0.1405, allocations: 0.8497 MB / 356.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000233/0.1408, allocations: 64.34 kB / 356.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1408, allocations: 4.25 kB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.709e-05/0.1409, allocations: 15.92 kB / 356.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006124/0.1415, allocations: 51.89 kB / 356.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.1435, allocations: 1.589 MB / 358.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.1438, allocations: 0.7002 MB / 359.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.675e-05/0.1438, allocations: 4.672 kB / 359.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/0.1439, allocations: 23.42 kB / 359.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1439, allocations: 0 / 359.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.1627, allocations: 1.83 MB / 361.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.081/8.244, allocations: 6.906 kB / 361.1 MB, free: 8.852 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches