Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001209/0.001209, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 63.23 kB / 307.1 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09971/0.1012, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002762/0.104, allocations: 1.414 MB / 359 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000183/0.1042, allocations: 31.86 kB / 359 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.807e-05/0.1043, allocations: 0 / 359 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.808e-05/0.1043, allocations: 7.984 kB / 359 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.286e-05/0.1044, allocations: 3.938 kB / 359 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.1046, allocations: 27.95 kB / 359.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.564e-05/0.1047, allocations: 23.94 kB / 359.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.443e-05/0.1048, allocations: 11.98 kB / 359.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.596e-05/0.1048, allocations: 11.94 kB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.737e-05/0.1049, allocations: 15.92 kB / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.1049, allocations: 3.984 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.227e-05/0.1049, allocations: 4 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.806e-05/0.1049, allocations: 4 kB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.371e-05/0.105, allocations: 23.86 kB / 359.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.923e-05/0.1051, allocations: 19.91 kB / 359.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1051, allocations: 0 / 359.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1051, allocations: 4 kB / 359.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1051, allocations: 0 / 359.2 MB, free: 12.42 MB / 302.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.0004325/0.1055, allocations: 343.7 kB / 359.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1056, allocations: 8.031 kB / 359.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.09e-05/0.1056, allocations: 34.75 kB / 359.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.1057, allocations: 4.844 kB / 359.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.1058, allocations: 188.2 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.1059, allocations: 4.375 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.298e-06/0.1059, allocations: 384 / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.1062, allocations: 111.9 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.1062, allocations: 3.938 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.1063, allocations: 0 / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1063, allocations: 0 / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001088/0.1064, allocations: 27.97 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.1065, allocations: 153.7 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001369/0.1067, allocations: 58.52 kB / 360.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.651e-05/0.1068, allocations: 24.89 kB / 360.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.104e-06/0.1068, allocations: 0 / 360.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.1068, allocations: 30.56 kB / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 8.31e-07/0.1068, allocations: 0 / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002581/0.1071, allocations: 85.45 kB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.1071, allocations: 55.41 kB / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.1073, allocations: 105.8 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.1073, allocations: 25.7 kB / 360.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.644e-05/0.1073, allocations: 80.14 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.1073, allocations: 11.94 kB / 360.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.982e-05/0.1074, allocations: 17.7 kB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1075, allocations: 318.8 kB / 360.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.279e-05/0.1075, allocations: 4 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.949e-05/0.1075, allocations: 33.11 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.573e-05/0.1076, allocations: 39.38 kB / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1076, allocations: 0 / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.369e-05/0.1077, allocations: 65.53 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1077, allocations: 7.938 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1077, allocations: 0 / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1077, allocations: 4 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.241e-05/0.1078, allocations: 7.938 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.1078, allocations: 0 / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.866e-05/0.1078, allocations: 0 / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-06/0.1079, allocations: 8.688 kB / 361 MB, free: 10.33 MB / 302.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 7.695e-05/0.1079, allocations: 121.8 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.1081, allocations: 61.61 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.384e-05/0.1081, allocations: 11.48 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1081, allocations: 3.938 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1081, allocations: 7.938 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1081, allocations: 0 / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.575e-05/0.1082, allocations: 157.6 kB / 361.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1083, allocations: 0 / 361.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-05/0.1083, allocations: 11.98 kB / 361.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.1083, allocations: 3.938 kB / 361.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.1083, allocations: 4 kB / 361.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1083, allocations: 0 / 361.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1083, allocations: 0 / 361.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001678/0.1085, allocations: 85.02 kB / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.876e-05/0.1086, allocations: 81.11 kB / 361.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.1086, allocations: 3.938 kB / 361.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.161e-05/0.1086, allocations: 7.984 kB / 361.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.794e-06/0.1086, allocations: 7.938 kB / 361.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.1086, allocations: 0 / 361.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.008e-05/0.1087, allocations: 83.28 kB / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1087, allocations: 3.938 kB / 361.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001923/0.1089, allocations: 4 kB / 361.7 MB, free: 9.574 MB / 302.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.0005525/0.1095, allocations: 0.6436 MB / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.1096, allocations: 35.92 kB / 362.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1096, allocations: 0 / 362.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.21e-07/0.1096, allocations: 0 / 362.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.1099, allocations: 23.98 kB / 362.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009644/0.1108, allocations: 1.17 MB / 363.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.1111, allocations: 0.6845 MB / 364.2 MB, free: 6.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.191e-05/0.1111, allocations: 0 / 364.2 MB, free: 6.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.572e-05/0.1111, allocations: 15.44 kB / 364.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1112, allocations: 96 / 364.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01963/0.1308, allocations: 1.281 MB / 365.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/7.711, allocations: 15.17 kB / 365.5 MB, free: 5.676 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock1.period,step.counter,step.startTick,assignClock1.u,assignClock1.y