Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.001917/0.001917, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002053/0.002053, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 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 1.485/1.485, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] 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.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 47.92 kB / 365.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.09778, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002849/0.1006, allocations: 1.43 MB / 419.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002056/0.1008, allocations: 27.91 kB / 419.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.82e-05/0.1009, allocations: 0 / 419.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.131e-05/0.1009, allocations: 7.938 kB / 419.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.477e-05/0.101, allocations: 7.938 kB / 419.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002705/0.1013, allocations: 19.97 kB / 419.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.1014, allocations: 31.86 kB / 419.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1015, allocations: 8 kB / 419.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.865e-05/0.1015, allocations: 19.91 kB / 419.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.69e-05/0.1016, allocations: 7.938 kB / 419.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.1016, allocations: 4 kB / 419.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.245e-05/0.1016, allocations: 4 kB / 419.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.1016, allocations: 7.984 kB / 419.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.876e-05/0.1017, allocations: 11.94 kB / 419.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.1018, allocations: 39.77 kB / 419.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1018, allocations: 0 / 419.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1018, allocations: 0 / 419.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1018, allocations: 4 kB / 419.4 MB, free: 11.01 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005101/0.1023, allocations: 341.8 kB / 419.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1023, allocations: 12.03 kB / 419.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.433e-05/0.1024, allocations: 38.73 kB / 419.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.586e-05/0.1024, allocations: 4.938 kB / 419.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.1026, allocations: 184.2 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.1027, allocations: 4.375 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.1027, allocations: 4.375 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003513/0.103, allocations: 119.8 kB / 420.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.103, allocations: 3.938 kB / 420.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.1031, allocations: 0 / 420.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.1031, allocations: 3.984 kB / 420.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.1032, allocations: 27.98 kB / 420.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.1033, allocations: 161.6 kB / 420.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.1035, allocations: 54.48 kB / 420.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.945e-05/0.1036, allocations: 24.92 kB / 420.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.053e-06/0.1036, allocations: 0 / 420.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.1036, allocations: 34.56 kB / 420.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.41e-07/0.1036, allocations: 4 kB / 420.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002929/0.1039, allocations: 81.55 kB / 420.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.919e-05/0.104, allocations: 59.34 kB / 420.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.603e-05/0.1041, allocations: 113.8 kB / 420.6 MB, free: 9.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.1041, allocations: 29.64 kB / 420.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/0.1041, allocations: 80.14 kB / 420.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.1042, allocations: 11.98 kB / 420.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.1042, allocations: 13.72 kB / 420.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1043, allocations: 318.8 kB / 421.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.537e-05/0.1043, allocations: 4 kB / 421.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.724e-05/0.1044, allocations: 31.42 kB / 421.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.781e-05/0.1044, allocations: 39.38 kB / 421.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1044, allocations: 0 / 421.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.944e-05/0.1045, allocations: 65.58 kB / 421.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1046, allocations: 7.938 kB / 421.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.1046, allocations: 0 / 421.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1046, allocations: 4 kB / 421.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.042e-05/0.1046, allocations: 11.94 kB / 421.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.1046, allocations: 0 / 421.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.953e-05/0.1047, allocations: 128 / 421.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.1047, allocations: 8 kB / 421.3 MB, free: 8.883 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.929e-05/0.1048, allocations: 117.8 kB / 421.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.1049, allocations: 61.61 kB / 421.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.424e-05/0.105, allocations: 11.91 kB / 421.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.105, allocations: 0 / 421.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.105, allocations: 0 / 421.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.105, allocations: 0 / 421.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.1051, allocations: 157.7 kB / 421.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1051, allocations: 3.938 kB / 421.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.925e-05/0.1052, allocations: 12 kB / 421.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1052, allocations: 3.938 kB / 421.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.1052, allocations: 0 / 421.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.1052, allocations: 3.984 kB / 421.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1052, allocations: 3.938 kB / 421.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001947/0.1054, allocations: 97.28 kB / 421.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.439e-05/0.1054, allocations: 81.05 kB / 421.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.1054, allocations: 4.312 kB / 421.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.553e-05/0.1055, allocations: 11.98 kB / 421.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-06/0.1055, allocations: 0 / 421.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.1055, allocations: 8 kB / 421.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.292e-05/0.1056, allocations: 83.28 kB / 421.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1056, allocations: 0 / 421.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001817/0.1057, allocations: 4 kB / 421.9 MB, free: 8.121 MB / 350.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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0006262/0.1064, allocations: 0.6591 MB / 422.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000145/0.1065, allocations: 27.92 kB / 422.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1065, allocations: 0 / 422.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.81e-07/0.1065, allocations: 4 kB / 422.6 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.1068, allocations: 27.95 kB / 422.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.1079, allocations: 1.186 MB / 423.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/0.1082, allocations: 0.6844 MB / 424.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.285e-05/0.1083, allocations: 0 / 424.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.588e-05/0.1083, allocations: 11.44 kB / 424.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1083, allocations: 0 / 424.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02318/0.1315, allocations: 1.387 MB / 425.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/8.265, allocations: 12.7 kB / 425.9 MB, free: 4.109 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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,periodicClock1.period,previous(step.counter),assignClock1.u,assignClock1.y,step.counter [Calling sys.exit(0), Time elapsed: 10.947991963941604]