Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",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.001639/0.001639, allocations: 106.3 kB / 16.92 MB, free: 5.762 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.002101/0.002101, allocations: 187.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.532/1.532, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 46.92 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1263, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003464/0.1298, allocations: 1.547 MB / 351.7 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009805/0.1308, allocations: 484.2 kB / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.131, allocations: 4 kB / 352.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.087e-05/0.1311, allocations: 3.938 kB / 352.2 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.1312, allocations: 7.922 kB / 352.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.1315, allocations: 39.84 kB / 352.2 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.529e-05/0.1316, allocations: 39.86 kB / 352.3 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.1317, allocations: 11.98 kB / 352.3 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.12e-05/0.1318, allocations: 27.84 kB / 352.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.1319, allocations: 11.94 kB / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.996e-05/0.1319, allocations: 4 kB / 352.3 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.287e-05/0.1319, allocations: 0 / 352.3 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.415e-05/0.132, allocations: 15.92 kB / 352.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.968e-05/0.1321, allocations: 27.81 kB / 352.4 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.1322, allocations: 43.81 kB / 352.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1322, allocations: 4 kB / 352.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1322, allocations: 0 / 352.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1322, allocations: 0 / 352.4 MB, free: 2.059 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000494/0.1327, allocations: 371.5 kB / 352.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1328, allocations: 8.031 kB / 352.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.656e-05/0.1328, allocations: 34.69 kB / 352.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.1328, allocations: 8.844 kB / 352.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.1331, allocations: 188.1 kB / 353 MB, free: 1.367 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.1331, allocations: 8.312 kB / 353 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.1331, allocations: 384 / 353 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.1334, allocations: 97.22 kB / 353.1 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.1334, allocations: 0 / 353.1 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.1334, allocations: 4 kB / 353.1 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1334, allocations: 3.938 kB / 353.1 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.636e-05/0.1335, allocations: 15.98 kB / 353.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000342/0.1339, allocations: 257.8 kB / 353.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.134, allocations: 53.14 kB / 353.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.503e-05/0.1341, allocations: 25.77 kB / 353.5 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.1341, allocations: 7.938 kB / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.1341, allocations: 30.56 kB / 353.5 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1341, allocations: 4 kB / 353.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002643/0.1344, allocations: 65.52 kB / 353.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.1345, allocations: 81.11 kB / 353.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.1346, allocations: 137.8 kB / 353.8 MB, free: 464 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.1346, allocations: 25.7 kB / 353.8 MB, free: 432 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.429e-05/0.1347, allocations: 84.14 kB / 353.9 MB, free: 344 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.1347, allocations: 20.14 kB / 353.9 MB, free: 324 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.601e-05/0.1347, allocations: 9.719 kB / 353.9 MB, free: 308 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1349, allocations: 322.8 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.169e-05/0.135, allocations: 7.984 kB / 354.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.489e-05/0.135, allocations: 13.72 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.804e-05/0.1351, allocations: 33.77 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1351, allocations: 0 / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001406/0.1352, allocations: 61.52 kB / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.1353, allocations: 10.81 kB / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1353, allocations: 0 / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1353, allocations: 0 / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.543e-05/0.1354, allocations: 4 kB / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1354, allocations: 0 / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.124e-05/0.1355, allocations: 12 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.1355, allocations: 7.969 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 9.41e-05/0.1356, allocations: 117.8 kB / 354.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.822e-05/0.1356, allocations: 37.64 kB / 354.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.087e-05/0.1357, allocations: 15.86 kB / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1357, allocations: 0 / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1357, allocations: 0 / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1357, allocations: 0 / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001681/0.1359, allocations: 185.4 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1359, allocations: 4.031 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.465e-05/0.1359, allocations: 4 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.136, allocations: 0 / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.136, allocations: 0 / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.136, allocations: 0 / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.136, allocations: 7.984 kB / 354.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001685/0.1362, allocations: 164.2 kB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.171e-05/0.1362, allocations: 89 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.1363, allocations: 4 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.782e-05/0.1363, allocations: 0 / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.1364, allocations: 3.984 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.1364, allocations: 4 kB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.707e-05/0.1365, allocations: 103.3 kB / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1365, allocations: 0 / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000233/0.1367, allocations: 8 kB / 355.1 MB, free: 14.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0004602/0.1372, allocations: 0.7014 MB / 355.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001613/0.1374, allocations: 20.08 kB / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1374, allocations: 0 / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.359e-05/0.1374, allocations: 15.98 kB / 355.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.1378, allocations: 19.97 kB / 355.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.1391, allocations: 1.296 MB / 357.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.1394, allocations: 0.6885 MB / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.078e-05/0.1395, allocations: 0 / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.655e-05/0.1395, allocations: 19.42 kB / 357.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1395, allocations: 4.031 kB / 357.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.1634, allocations: 1.432 MB / 359.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.13, allocations: 7.453 kB / 359.3 MB, free: 10.72 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_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_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches