Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009582/0.0009582, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9223/0.9223, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.039e-05/2.201e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002153/0.002175, allocations: 1.55 MB / 320 MB, free: 4.816 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006335/0.002808, allocations: 442.8 kB / 320.4 MB, free: 4.379 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.346e-05/0.002881, allocations: 4 kB / 320.4 MB, free: 4.375 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.574e-05/0.002917, allocations: 7.875 kB / 320.4 MB, free: 4.367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001169/0.003034, allocations: 15.86 kB / 320.4 MB, free: 4.352 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.003257, allocations: 43.83 kB / 320.5 MB, free: 4.309 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.622e-05/0.003343, allocations: 47.84 kB / 320.5 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.706e-05/0.00342, allocations: 11.98 kB / 320.5 MB, free: 4.25 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.158e-05/0.003492, allocations: 39.83 kB / 320.6 MB, free: 4.211 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.364e-05/0.003535, allocations: 11.92 kB / 320.6 MB, free: 4.199 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.003556, allocations: 4 kB / 320.6 MB, free: 4.195 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.027e-05/0.003566, allocations: 4 kB / 320.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.941e-05/0.003605, allocations: 11.94 kB / 320.6 MB, free: 4.18 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.273e-05/0.003628, allocations: 19.91 kB / 320.6 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001/0.003728, allocations: 59.73 kB / 320.7 MB, free: 4.102 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.00373, allocations: 0 / 320.7 MB, free: 4.102 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.003731, allocations: 0 / 320.7 MB, free: 4.102 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.003735, allocations: 0 / 320.7 MB, free: 4.102 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003313/0.004066, allocations: 297.3 kB / 321 MB, free: 3.785 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.004101, allocations: 12.92 kB / 321 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.837e-05/0.004129, allocations: 34.75 kB / 321 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.923e-05/0.004158, allocations: 8.891 kB / 321 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.004341, allocations: 141.5 kB / 321.2 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.00435, allocations: 8.375 kB / 321.2 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-06/0.004359, allocations: 4.375 kB / 321.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.004571, allocations: 113.5 kB / 321.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.004578, allocations: 192 / 321.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.004587, allocations: 4.125 kB / 321.3 MB, free: 3.414 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.00459, allocations: 0 / 321.3 MB, free: 3.414 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.457e-05/0.004635, allocations: 19.98 kB / 321.3 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002409/0.004876, allocations: 232.8 kB / 321.5 MB, free: 3.121 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.069e-05/0.004937, allocations: 49.14 kB / 321.6 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.18e-05/0.004968, allocations: 21.72 kB / 321.6 MB, free: 3.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.004987, allocations: 7.938 kB / 321.6 MB, free: 3.02 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.005008, allocations: 34.56 kB / 321.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.005009, allocations: 0 / 321.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001771/0.005186, allocations: 65.81 kB / 321.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.005232, allocations: 85.11 kB / 321.8 MB, free: 2.805 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.516e-05/0.005327, allocations: 142.1 kB / 321.9 MB, free: 2.652 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.005339, allocations: 25.7 kB / 322 MB, free: 2.621 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.00538, allocations: 88.14 kB / 322 MB, free: 2.531 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.105e-05/0.005391, allocations: 0 / 322 MB, free: 2.531 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.005419, allocations: 17.67 kB / 322.1 MB, free: 2.508 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.239e-05/0.005501, allocations: 318.8 kB / 322.4 MB, free: 2.188 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.091e-05/0.005522, allocations: 4 kB / 322.4 MB, free: 2.184 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.676e-05/0.005539, allocations: 11.92 kB / 322.4 MB, free: 2.172 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.359e-05/0.005582, allocations: 28.91 kB / 322.4 MB, free: 2.141 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.005584, allocations: 3.938 kB / 322.4 MB, free: 2.137 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.696e-05/0.005651, allocations: 49.62 kB / 322.5 MB, free: 2.082 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.005663, allocations: 4 kB / 322.5 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.005668, allocations: 0 / 322.5 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.00568, allocations: 4 kB / 322.5 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.029e-05/0.00573, allocations: 0 / 322.5 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.005735, allocations: 0 / 322.5 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.963e-05/0.005755, allocations: 7.984 kB / 322.5 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.005763, allocations: 4.031 kB / 322.5 MB, free: 2.062 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 6.361e-05/0.005827, allocations: 109.8 kB / 322.6 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.163e-05/0.005868, allocations: 53.52 kB / 322.6 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.005892, allocations: 7.812 kB / 322.7 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.005894, allocations: 0 / 322.7 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.005899, allocations: 0 / 322.7 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.005902, allocations: 0 / 322.7 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.006026, allocations: 140.7 kB / 322.8 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.006029, allocations: 7.938 kB / 322.8 MB, free: 1.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.407e-05/0.006054, allocations: 8.031 kB / 322.8 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.006056, allocations: 0 / 322.8 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.006064, allocations: 4 kB / 322.8 MB, free: 1.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.006066, allocations: 3.938 kB / 322.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.006066, allocations: 0 / 322.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.006174, allocations: 160.3 kB / 323 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.959e-05/0.006204, allocations: 15.88 kB / 323 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.006216, allocations: 7.938 kB / 323 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.273e-05/0.006249, allocations: 0 / 323 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.342e-05/0.006273, allocations: 32 / 323 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.006277, allocations: 8 kB / 323 MB, free: 1.469 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.455e-05/0.006331, allocations: 113.8 kB / 323.1 MB, free: 1.359 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006331, allocations: 0 / 323.1 MB, free: 1.359 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001437/0.006475, allocations: 4 kB / 323.1 MB, free: 1.355 MB / 282.7 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.0002889/0.006764, allocations: 0.6859 MB / 323.8 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.721e-05/0.006851, allocations: 23.92 kB / 323.8 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.006853, allocations: 4.094 kB / 323.8 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.861e-05/0.006871, allocations: 4 kB / 323.8 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.007127, allocations: 23.95 kB / 323.9 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008085/0.007935, allocations: 1.288 MB / 325.1 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.954e-05/0.007995, allocations: 71.52 kB / 325.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.686e-05/0.008022, allocations: 4 kB / 325.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.008058, allocations: 20.48 kB / 325.2 MB, free: 15.1 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.008059, allocations: 0 / 325.2 MB, free: 15.1 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01502/0.02308, allocations: 2.218 MB / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.807/6.83, allocations: 11.14 kB / 327.5 MB, free: 13 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.667074934579432]