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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 112.5 kB / 17.06 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 200.1 kB / 18.01 MB, free: 5.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2575, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002275/0.2598, allocations: 0.8728 MB / 401.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00033/0.2602, allocations: 108.9 kB / 401.2 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.224e-05/0.2603, allocations: 6.312 kB / 401.2 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.141e-05/0.2604, allocations: 3.938 kB / 401.2 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.2605, allocations: 10.05 kB / 401.2 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.2608, allocations: 33.91 kB / 401.3 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.2609, allocations: 39.91 kB / 401.3 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.261, allocations: 28.56 kB / 401.3 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.25e-05/0.261, allocations: 17.47 kB / 401.3 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.112e-05/0.2611, allocations: 19.2 kB / 401.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.2611, allocations: 3.469 kB / 401.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.105e-05/0.2611, allocations: 3.688 kB / 401.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.01e-05/0.2611, allocations: 15.64 kB / 401.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.713e-05/0.2612, allocations: 25.5 kB / 401.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.2613, allocations: 50.64 kB / 401.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2613, allocations: 1.062 kB / 401.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2613, allocations: 0 / 401.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.2613, allocations: 4 kB / 401.5 MB, free: 7.488 MB / 318.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.0003876/0.2617, allocations: 379.4 kB / 401.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.2618, allocations: 9.5 kB / 401.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.468e-05/0.2618, allocations: 36.7 kB / 401.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.822e-05/0.2619, allocations: 8.766 kB / 401.9 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002214/0.2621, allocations: 190.9 kB / 402.1 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.2621, allocations: 6.5 kB / 402.1 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.301e-05/0.2621, allocations: 8.75 kB / 402.1 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.2624, allocations: 124.5 kB / 402.2 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2624, allocations: 7.938 kB / 402.2 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.2624, allocations: 3.938 kB / 402.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.2624, allocations: 0 / 402.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.274e-05/0.2625, allocations: 23.88 kB / 402.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.2626, allocations: 177.6 kB / 402.4 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001239/0.2628, allocations: 66.7 kB / 402.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.322e-05/0.2628, allocations: 36.89 kB / 402.5 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.2628, allocations: 0 / 402.5 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.2629, allocations: 38.5 kB / 402.6 MB, free: 6.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 2.274e-06/0.2629, allocations: 4 kB / 402.6 MB, free: 6.305 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002113/0.2631, allocations: 85.58 kB / 402.7 MB, free: 6.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.2631, allocations: 59.41 kB / 402.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.2633, allocations: 137 kB / 402.8 MB, free: 6.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.2633, allocations: 25.7 kB / 402.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.584e-05/0.2633, allocations: 84.14 kB / 403 MB, free: 5.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.2633, allocations: 4 kB / 403 MB, free: 5.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.2634, allocations: 33.66 kB / 403 MB, free: 5.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.2635, allocations: 314.8 kB / 403.3 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.937e-05/0.2635, allocations: 11.94 kB / 403.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.358e-05/0.2636, allocations: 58.86 kB / 403.4 MB, free: 5.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.171e-05/0.2637, allocations: 74.73 kB / 403.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2637, allocations: 0 / 403.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001195/0.2638, allocations: 85.56 kB / 403.5 MB, free: 5.246 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.2638, allocations: 11.94 kB / 403.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2638, allocations: 0 / 403.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.2638, allocations: 4 kB / 403.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.95e-05/0.2639, allocations: 11.92 kB / 403.5 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.2639, allocations: 3.984 kB / 403.6 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.739e-05/0.2639, allocations: 11.89 kB / 403.6 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.2639, allocations: 8 kB / 403.6 MB, free: 5.195 MB / 318.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 8.784e-05/0.264, allocations: 130 kB / 403.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.149e-05/0.2641, allocations: 77.88 kB / 403.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.2641, allocations: 12.38 kB / 403.8 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.2642, allocations: 0 / 403.8 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2642, allocations: 0 / 403.8 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.2642, allocations: 0 / 403.8 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.2643, allocations: 169.6 kB / 404 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.2643, allocations: 3.938 kB / 404 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.211e-05/0.2643, allocations: 4 kB / 404 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.2643, allocations: 8.125 kB / 404 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.2643, allocations: 0 / 404 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2643, allocations: 3.938 kB / 404 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2643, allocations: 0 / 404 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001119/0.2644, allocations: 105.1 kB / 404.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.447e-05/0.2645, allocations: 89.05 kB / 404.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.2645, allocations: 15.92 kB / 404.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.649e-05/0.2646, allocations: 0 / 404.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.465e-06/0.2646, allocations: 4 kB / 404.2 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.2646, allocations: 0 / 404.2 MB, free: 4.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.589e-05/0.2646, allocations: 107.2 kB / 404.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2646, allocations: 0 / 404.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002081/0.2649, allocations: 8 kB / 404.3 MB, free: 4.371 MB / 318.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.0004667/0.2653, allocations: 0.6631 MB / 405 MB, free: 3.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001276/0.2655, allocations: 51.91 kB / 405 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.2655, allocations: 0 / 405 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.2655, allocations: 4 kB / 405 MB, free: 3.625 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.2658, allocations: 35.95 kB / 405 MB, free: 3.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.2668, allocations: 1.325 MB / 406.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.2671, allocations: 0.7 MB / 407.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.912e-05/0.2671, allocations: 0 / 407.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.307e-05/0.2672, allocations: 15.44 kB / 407.1 MB, free: 1.402 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2672, allocations: 0 / 407.1 MB, free: 1.402 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.2862, allocations: 1.711 MB / 408.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/7.907, allocations: 7.781 kB / 408.8 MB, free: 15.81 MB / 334.1 MB (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 3.6e-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) 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) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock.factor,periodicClock.resolution,previous(unitDelay1.u),assignClock1.u,assignClock1.y