Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.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.0008261/0.0008261, 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.0008465/0.0008465, 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.9226/0.9226, allocations: 173.3 MB / 200.4 MB, free: 9.43 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.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.232e-05/2.411e-05, allocations: 6.219 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.001585/0.001609, allocations: 0.8589 MB / 319.3 MB, free: 5.5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003154/0.001925, allocations: 123.5 kB / 319.4 MB, free: 5.379 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.265e-05/0.002007, allocations: 7.938 kB / 319.4 MB, free: 5.371 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.434e-05/0.002052, allocations: 7.875 kB / 319.4 MB, free: 5.363 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.002186, allocations: 7.938 kB / 319.4 MB, free: 5.355 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.002412, allocations: 35.89 kB / 319.5 MB, free: 5.32 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.993e-05/0.002512, allocations: 39.92 kB / 319.5 MB, free: 5.281 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.002621, allocations: 27.89 kB / 319.5 MB, free: 5.254 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.579e-05/0.002667, allocations: 19.98 kB / 319.6 MB, free: 5.234 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.04e-05/0.002697, allocations: 19.86 kB / 319.6 MB, free: 5.215 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.00272, allocations: 4 kB / 319.6 MB, free: 5.211 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.094e-05/0.002731, allocations: 4 kB / 319.6 MB, free: 5.207 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.97e-05/0.002781, allocations: 19.92 kB / 319.6 MB, free: 5.188 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.02e-05/0.002811, allocations: 15.97 kB / 319.6 MB, free: 5.172 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.002927, allocations: 51.8 kB / 319.7 MB, free: 5.121 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.002931, allocations: 3.938 kB / 319.7 MB, free: 5.117 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.002932, allocations: 0 / 319.7 MB, free: 5.117 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.002938, allocations: 0 / 319.7 MB, free: 5.117 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003488/0.003286, allocations: 294.1 kB / 320 MB, free: 4.797 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.003334, allocations: 8.922 kB / 320 MB, free: 4.789 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.296e-05/0.003377, allocations: 34.75 kB / 320 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.159e-05/0.003408, allocations: 8.891 kB / 320 MB, free: 4.738 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.003612, allocations: 133.6 kB / 320.1 MB, free: 4.582 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.003624, allocations: 8.375 kB / 320.2 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.003638, allocations: 8.359 kB / 320.2 MB, free: 4.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.003861, allocations: 127.8 kB / 320.3 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.003868, allocations: 192 / 320.3 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.003877, allocations: 4.375 kB / 320.3 MB, free: 4.426 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.003884, allocations: 8.125 kB / 320.3 MB, free: 4.418 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.504e-05/0.003919, allocations: 23.92 kB / 320.3 MB, free: 4.395 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001025/0.004022, allocations: 132.8 kB / 320.5 MB, free: 4.223 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001104/0.004132, allocations: 58.72 kB / 320.5 MB, free: 4.156 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.776e-05/0.00418, allocations: 32.89 kB / 320.5 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.004189, allocations: 4 kB / 320.5 MB, free: 4.117 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.004208, allocations: 34.55 kB / 320.6 MB, free: 4.074 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.00421, allocations: 0 / 320.6 MB, free: 4.074 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001538/0.004364, allocations: 89.58 kB / 320.7 MB, free: 3.98 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.004408, allocations: 55.66 kB / 320.7 MB, free: 3.914 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.137e-05/0.004499, allocations: 139.2 kB / 320.9 MB, free: 3.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.387e-06/0.004509, allocations: 29.7 kB / 320.9 MB, free: 3.734 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.149e-05/0.00454, allocations: 84.14 kB / 321 MB, free: 3.648 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.194e-05/0.004552, allocations: 0 / 321 MB, free: 3.648 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.00458, allocations: 25.67 kB / 321 MB, free: 3.617 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.378e-05/0.004654, allocations: 314.8 kB / 321.3 MB, free: 3.301 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.018e-05/0.004664, allocations: 0 / 321.3 MB, free: 3.301 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.795e-06/0.004672, allocations: 8 kB / 321.3 MB, free: 3.293 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.255e-05/0.004695, allocations: 12.8 kB / 321.3 MB, free: 3.277 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.004696, allocations: 3.938 kB / 321.3 MB, free: 3.273 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.56e-05/0.004742, allocations: 41.77 kB / 321.4 MB, free: 3.227 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.004757, allocations: 7.984 kB / 321.4 MB, free: 3.219 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.004761, allocations: 4 kB / 321.4 MB, free: 3.215 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.004773, allocations: 0 / 321.4 MB, free: 3.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.337e-05/0.004787, allocations: 3.938 kB / 321.4 MB, free: 3.211 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.004793, allocations: 3.984 kB / 321.4 MB, free: 3.207 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.969e-06/0.004803, allocations: 0 / 321.4 MB, free: 3.207 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.004809, allocations: 0 / 321.4 MB, free: 3.207 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: 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 6.958e-05/0.004878, allocations: 117.8 kB / 321.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.416e-05/0.004933, allocations: 73.58 kB / 321.6 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.041e-05/0.004963, allocations: 16.41 kB / 321.6 MB, free: 2.984 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.004967, allocations: 4 kB / 321.6 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.004973, allocations: 3.938 kB / 321.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.004977, allocations: 3.984 kB / 321.6 MB, free: 2.973 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.477e-05/0.005042, allocations: 140.6 kB / 321.7 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.005043, allocations: 4 kB / 321.7 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.143e-06/0.005051, allocations: 4 kB / 321.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.005052, allocations: 0 / 321.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.005058, allocations: 0 / 321.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.005059, allocations: 0 / 321.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.005061, allocations: 3.938 kB / 321.7 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.015e-05/0.005141, allocations: 109 kB / 321.9 MB, free: 2.656 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.241e-05/0.005174, allocations: 15.95 kB / 321.9 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.005188, allocations: 3.984 kB / 321.9 MB, free: 2.637 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.236e-05/0.0052, allocations: 7.984 kB / 321.9 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.136e-06/0.005203, allocations: 3.938 kB / 321.9 MB, free: 2.625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.005208, allocations: 4 kB / 321.9 MB, free: 2.621 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.379e-05/0.005252, allocations: 96.25 kB / 322 MB, free: 2.527 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005252, allocations: 0 / 322 MB, free: 2.527 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00012/0.005372, allocations: 12 kB / 322 MB, free: 2.516 MB / 282.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,xor.u1,xor.u2,xor.y,integerConstant.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.0005034/0.005875, allocations: 0.6554 MB / 322.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.505e-05/0.00596, allocations: 23.97 kB / 322.7 MB, free: 1.809 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.005962, allocations: 4 kB / 322.7 MB, free: 1.805 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.51e-07/0.005962, allocations: 0 / 322.7 MB, free: 1.805 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.006231, allocations: 46.86 kB / 322.7 MB, free: 1.762 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007309/0.006962, allocations: 1.169 MB / 323.9 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.407e-05/0.007026, allocations: 79.27 kB / 324 MB, free: 420 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.68e-05/0.007043, allocations: 4.156 kB / 324 MB, free: 416 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.641e-05/0.007089, allocations: 16.5 kB / 324 MB, free: 400 kB / 282.7 MB Notification: Performance of SimCode: time 8.22e-07/0.00709, allocations: 0 / 324 MB, free: 400 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.02549, allocations: 2.319 MB / 326.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.931/6.956, allocations: 15.88 kB / 326.3 MB, free: 14.18 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.csv: Error: Error opening file: Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result: [Calling sys.exit(0), Time elapsed: 8.78914243914187]