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.001321/0.001321, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001541/0.001541, allocations: 194.6 kB / 23.71 MB, free: 4.406 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.37/1.37, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.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.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 0.001519/0.001519, allocations: 51.89 kB / 370.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2719, allocations: 52.18 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002428/0.2744, allocations: 0.8775 MB / 423.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003622/0.2747, allocations: 107.7 kB / 423.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.635e-05/0.2748, allocations: 4 kB / 423.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.139e-05/0.2749, allocations: 7.922 kB / 423.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.275, allocations: 7.938 kB / 423.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.2752, allocations: 35.89 kB / 423.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001218/0.2753, allocations: 43.86 kB / 423.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.2755, allocations: 19.78 kB / 423.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.126e-05/0.2755, allocations: 19.92 kB / 423.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.972e-05/0.2756, allocations: 19.84 kB / 423.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.2756, allocations: 0 / 423.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.361e-05/0.2756, allocations: 4 kB / 423.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.084e-05/0.2756, allocations: 12 kB / 423.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.174e-05/0.2757, allocations: 27.8 kB / 423.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.2758, allocations: 57.56 kB / 423.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2758, allocations: 0 / 423.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.2758, allocations: 0 / 423.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.2758, allocations: 0 / 423.8 MB, free: 13.14 MB / 334.1 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.0004416/0.2763, allocations: 294 kB / 424.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.2763, allocations: 11.97 kB / 424.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.507e-05/0.2764, allocations: 42.69 kB / 424.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.022e-05/0.2764, allocations: 8.891 kB / 424.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.2767, allocations: 138.4 kB / 424.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.2767, allocations: 4.375 kB / 424.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.2767, allocations: 8.359 kB / 424.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.277, allocations: 127.8 kB / 424.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.277, allocations: 3.938 kB / 424.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.277, allocations: 0 / 424.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.277, allocations: 4 kB / 424.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.038e-05/0.2771, allocations: 19.98 kB / 424.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.2772, allocations: 140.6 kB / 424.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.2774, allocations: 58.72 kB / 424.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.082e-05/0.2775, allocations: 32.89 kB / 424.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.2775, allocations: 7.922 kB / 424.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.2775, allocations: 42.56 kB / 424.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.2775, allocations: 0 / 424.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002116/0.2777, allocations: 93.48 kB / 424.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.2778, allocations: 59.41 kB / 424.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.2779, allocations: 141.3 kB / 425 MB, free: 11.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.278, allocations: 25.7 kB / 425 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.921e-05/0.278, allocations: 88.14 kB / 425.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.409e-05/0.278, allocations: 0 / 425.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.236e-05/0.2781, allocations: 37.66 kB / 425.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.2782, allocations: 314.8 kB / 425.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.21e-05/0.2783, allocations: 11.98 kB / 425.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.918e-05/0.2783, allocations: 54.81 kB / 425.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.823e-05/0.2784, allocations: 74.8 kB / 425.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.2784, allocations: 4 kB / 425.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001319/0.2785, allocations: 85.5 kB / 425.7 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.2786, allocations: 8.188 kB / 425.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.2786, allocations: 8 kB / 425.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.2786, allocations: 0 / 425.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.515e-05/0.2786, allocations: 7.938 kB / 425.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.2786, allocations: 7.984 kB / 425.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.79e-05/0.2787, allocations: 7.891 kB / 425.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.2787, allocations: 8 kB / 425.7 MB, free: 10.95 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 0.0001041/0.2788, allocations: 118 kB / 425.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.516e-05/0.2789, allocations: 81.5 kB / 425.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.205e-05/0.2789, allocations: 16.31 kB / 426 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2789, allocations: 4 kB / 426 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.2789, allocations: 0 / 426 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.2789, allocations: 7.984 kB / 426 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/0.279, allocations: 132.8 kB / 426.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.279, allocations: 0 / 426.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.789e-06/0.2791, allocations: 0 / 426.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.2791, allocations: 3.938 kB / 426.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.2791, allocations: 4 kB / 426.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2791, allocations: 0 / 426.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2791, allocations: 0 / 426.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.2792, allocations: 108.9 kB / 426.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.2792, allocations: 11.95 kB / 426.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.2793, allocations: 11.94 kB / 426.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.961e-05/0.2793, allocations: 3.984 kB / 426.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.467e-06/0.2793, allocations: 0 / 426.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.2793, allocations: 0 / 426.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.076e-05/0.2794, allocations: 103.3 kB / 426.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2794, allocations: 0 / 426.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001988/0.2796, allocations: 8 kB / 426.3 MB, free: 10.27 MB / 334.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: 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.0005388/0.2801, allocations: 0.6553 MB / 427 MB, free: 9.582 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.2802, allocations: 47.97 kB / 427.1 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2802, allocations: 0 / 427.1 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-07/0.2802, allocations: 0 / 427.1 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.2805, allocations: 43.95 kB / 427.1 MB, free: 9.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.2818, allocations: 1.328 MB / 428.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.467e-05/0.2819, allocations: 84.56 kB / 428.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.223e-05/0.2819, allocations: 15.86 kB / 428.5 MB, free: 7.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.855e-05/0.2819, allocations: 15.44 kB / 428.5 MB, free: 7.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2819, allocations: 0 / 428.5 MB, free: 7.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.3101, allocations: 2.252 MB / 430.8 MB, free: 5.801 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.13, allocations: 8.953 kB / 430.8 MB, free: 5.797 MB / 334.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock.factor,periodicClock.resolution,previous(unitDelay1.u),assignClock1.u,assignClock1.y [Calling sys.exit(0), Time elapsed: 13.676184221170843]