Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008549/0.0008549, allocations: 79.7 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9209/0.9209, allocations: 177.1 MB / 204.2 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.111e-05/2.259e-05, allocations: 12.61 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001719/0.001741, allocations: 0.856 MB / 325.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003063/0.002048, allocations: 123.5 kB / 325.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.002124, allocations: 7.938 kB / 325.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.476e-05/0.002218, allocations: 7.922 kB / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.002346, allocations: 11.88 kB / 325.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.002537, allocations: 39.95 kB / 325.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.002639, allocations: 43.84 kB / 325.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.002742, allocations: 15.98 kB / 325.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.988e-05/0.002782, allocations: 19.98 kB / 325.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.305e-05/0.002855, allocations: 27.83 kB / 325.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.002878, allocations: 0 / 325.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.026e-05/0.002889, allocations: 4 kB / 325.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.002932, allocations: 15.94 kB / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.002964, allocations: 15.92 kB / 325.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.003072, allocations: 55.8 kB / 325.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.003075, allocations: 4 kB / 325.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.003076, allocations: 4 kB / 325.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.00308, allocations: 0 / 325.8 MB, free: 14.7 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000412/0.003492, allocations: 304.9 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.003532, allocations: 12.03 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.971e-05/0.003562, allocations: 34.73 kB / 326.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.23e-05/0.003584, allocations: 12.84 kB / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.003739, allocations: 141.5 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.639e-06/0.003749, allocations: 8.375 kB / 326.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-06/0.003757, allocations: 8.375 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.003978, allocations: 143.8 kB / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.003985, allocations: 192 / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-06/0.003992, allocations: 384 / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.003998, allocations: 4.125 kB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.706e-05/0.004035, allocations: 23.92 kB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000104/0.004139, allocations: 136.8 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.004259, allocations: 74.69 kB / 326.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.458e-05/0.004303, allocations: 40.89 kB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.705e-06/0.004311, allocations: 0 / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.004329, allocations: 38.5 kB / 326.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 6.92e-07/0.004329, allocations: 0 / 326.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001565/0.004486, allocations: 105.8 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.00453, allocations: 63.33 kB / 326.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.74e-05/0.004618, allocations: 148.5 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.004627, allocations: 25.7 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.004664, allocations: 88.14 kB / 327.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.004677, allocations: 7.984 kB / 327.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/0.004703, allocations: 17.72 kB / 327.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.946e-05/0.004773, allocations: 310.8 kB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.506e-06/0.004781, allocations: 4 kB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.018e-05/0.004791, allocations: 11.98 kB / 327.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.847e-05/0.00481, allocations: 8.797 kB / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.004811, allocations: 0 / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.76e-05/0.004849, allocations: 45.66 kB / 327.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.004859, allocations: 4 kB / 327.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.004862, allocations: 96 / 327.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.004874, allocations: 7.938 kB / 327.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.759e-05/0.004911, allocations: 4 kB / 327.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.004916, allocations: 0 / 327.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.949e-06/0.004926, allocations: 3.938 kB / 327.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.004931, allocations: 7.984 kB / 327.6 MB, free: 12.69 MB / 298.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: 2 ($CLKPRE.unitDelay1.u,unitDelay1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * 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 5.766e-05/0.004989, allocations: 113.8 kB / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.164e-05/0.00505, allocations: 85.58 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.487e-05/0.005075, allocations: 12.77 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.005078, allocations: 7.938 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.005082, allocations: 0 / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.005084, allocations: 4 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.568e-05/0.00515, allocations: 140.7 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.005152, allocations: 4 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.13e-05/0.005193, allocations: 8 kB / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.005195, allocations: 4 kB / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.005201, allocations: 0 / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.005203, allocations: 3.938 kB / 328 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.005204, allocations: 0 / 328 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.139e-05/0.005286, allocations: 109 kB / 328.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.005319, allocations: 19.94 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.00533, allocations: 4 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.213e-05/0.005342, allocations: 7.938 kB / 328.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.983e-06/0.005344, allocations: 0 / 328.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.005347, allocations: 0 / 328.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.464e-05/0.005392, allocations: 107.2 kB / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005392, allocations: 0 / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001197/0.005512, allocations: 12 kB / 328.2 MB, free: 11.98 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0002979/0.005809, allocations: 0.6787 MB / 328.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.834e-05/0.005878, allocations: 24.05 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.005879, allocations: 4.062 kB / 328.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.005879, allocations: 4 kB / 329 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.006098, allocations: 54.92 kB / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006961/0.006795, allocations: 1.22 MB / 330.2 MB, free: 9.879 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.835e-05/0.006853, allocations: 87.02 kB / 330.3 MB, free: 9.773 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.606e-05/0.006869, allocations: 7.984 kB / 330.3 MB, free: 9.766 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.006906, allocations: 16.5 kB / 330.3 MB, free: 9.75 MB / 298.7 MB Notification: Performance of SimCode: time 8.11e-07/0.006907, allocations: 4.031 kB / 330.3 MB, free: 9.746 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01438/0.02128, allocations: 2.443 MB / 332.8 MB, free: 7.438 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.069/7.09, allocations: 4.062 kB / 332.8 MB, free: 7.434 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,previous(unitDelay1.u),assignClock1.u,assignClock1.y,const.y,sum.u[1] [Calling sys.exit(0), Time elapsed: 8.934662888757885]