Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",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.001088/0.001088, allocations: 107.4 kB / 17.06 MB, free: 6.098 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.001066/0.001066, allocations: 198.9 kB / 18 MB, free: 5.168 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.387/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009413/0.0009414, allocations: 47.91 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2645, allocations: 49.45 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.002836/0.2673, allocations: 1.482 MB / 401.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003622/0.2677, allocations: 130.9 kB / 401.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.991e-05/0.2678, allocations: 1.969 kB / 401.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.454e-05/0.2679, allocations: 11.92 kB / 401.9 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.268, allocations: 6 kB / 401.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002436/0.2683, allocations: 41.09 kB / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.999e-05/0.2683, allocations: 27.42 kB / 401.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.86e-05/0.2685, allocations: 13.11 kB / 401.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3e-05/0.2685, allocations: 10.56 kB / 402 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.921e-05/0.2685, allocations: 15.77 kB / 402 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.645e-05/0.2685, allocations: 1.406 kB / 402 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.161e-05/0.2686, allocations: 2.375 kB / 402 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.664e-05/0.2686, allocations: 15.77 kB / 402 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.192e-05/0.2687, allocations: 18.44 kB / 402 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.2688, allocations: 34.92 kB / 402 MB, free: 7.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2688, allocations: 0 / 402 MB, free: 7.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.2688, allocations: 0 / 402 MB, free: 7.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.094e-05/0.2688, allocations: 0 / 402 MB, free: 7.023 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005289/0.2694, allocations: 367.2 kB / 402.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.2694, allocations: 12.03 kB / 402.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.2695, allocations: 34.75 kB / 402.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.2695, allocations: 8.891 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/0.2698, allocations: 199.5 kB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.2698, allocations: 12.3 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.2698, allocations: 4.375 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.27, allocations: 89.61 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.2701, allocations: 3.938 kB / 402.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.2701, allocations: 4 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2701, allocations: 0 / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.454e-05/0.2702, allocations: 15.94 kB / 402.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003312/0.2705, allocations: 257.8 kB / 403 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.724e-05/0.2706, allocations: 41.16 kB / 403.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.832e-05/0.2706, allocations: 17.72 kB / 403.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.2706, allocations: 0 / 403.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.2707, allocations: 46.55 kB / 403.1 MB, free: 5.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.2707, allocations: 0 / 403.1 MB, free: 5.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002146/0.2709, allocations: 57.58 kB / 403.2 MB, free: 5.672 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.271, allocations: 77.11 kB / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.2711, allocations: 129.8 kB / 403.4 MB, free: 5.441 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.2711, allocations: 25.7 kB / 403.4 MB, free: 5.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.639e-05/0.2712, allocations: 84.39 kB / 403.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.295e-06/0.2712, allocations: 4 kB / 403.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.2712, allocations: 17.72 kB / 403.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.2713, allocations: 314.8 kB / 403.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.229e-05/0.2714, allocations: 8 kB / 403.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.611e-05/0.2714, allocations: 13.72 kB / 403.8 MB, free: 4.953 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.2715, allocations: 33.7 kB / 403.9 MB, free: 4.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.2715, allocations: 3.938 kB / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001294/0.2717, allocations: 49.58 kB / 403.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.2717, allocations: 4 kB / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2717, allocations: 4 kB / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.2717, allocations: 0 / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.37e-05/0.2718, allocations: 0 / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.2718, allocations: 0 / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.804e-05/0.2718, allocations: 12.06 kB / 404 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.2718, allocations: 0 / 404 MB, free: 4.836 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 9.218e-05/0.2719, allocations: 117.8 kB / 404.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.555e-05/0.272, allocations: 41.66 kB / 404.1 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.713e-05/0.272, allocations: 7.469 kB / 404.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.272, allocations: 0 / 404.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.272, allocations: 4 kB / 404.1 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.272, allocations: 3.984 kB / 404.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.2722, allocations: 165.6 kB / 404.3 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2722, allocations: 4.031 kB / 404.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.244e-06/0.2722, allocations: 3.938 kB / 404.3 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2722, allocations: 3.938 kB / 404.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.2722, allocations: 4 kB / 404.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2722, allocations: 0 / 404.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.2722, allocations: 3.984 kB / 404.3 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001522/0.2724, allocations: 156.3 kB / 404.5 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.74e-05/0.2725, allocations: 89.09 kB / 404.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.2725, allocations: 0 / 404.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.61e-05/0.2726, allocations: 7.984 kB / 404.6 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.906e-05/0.2726, allocations: 4 kB / 404.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.2726, allocations: 0 / 404.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.11e-05/0.2727, allocations: 103.2 kB / 404.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.2727, allocations: 4 kB / 404.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002114/0.2729, allocations: 3.938 kB / 404.7 MB, free: 4.016 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0004162/0.2733, allocations: 0.7015 MB / 405.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001075/0.2734, allocations: 19.94 kB / 405.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2734, allocations: 160 / 405.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.492e-05/0.2735, allocations: 11.98 kB / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.2738, allocations: 14.69 kB / 405.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.2749, allocations: 1.24 MB / 406.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.2752, allocations: 0.6923 MB / 407.3 MB, free: 1.195 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.787e-05/0.2752, allocations: 4 kB / 407.3 MB, free: 1.191 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.242e-05/0.2753, allocations: 11.44 kB / 407.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2753, allocations: 0 / 407.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.293, allocations: 1.366 MB / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.103, allocations: 6.781 kB / 408.7 MB, free: 15.95 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y Variables in the result:time,step.startTime,periodicClock.factor,periodicClock.resolution,sample1.u,sample1.y