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.001371/0.001371, allocations: 110.6 kB / 16.92 MB, free: 6.332 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.001372/0.001372, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.35/1.35, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 38.03 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09261/0.09373, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002299/0.09607, allocations: 0.8608 MB / 351 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003256/0.09642, allocations: 115.6 kB / 351.1 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.226e-05/0.09651, allocations: 4 kB / 351.1 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.765e-05/0.09657, allocations: 3.938 kB / 351.1 MB, free: 3.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.09668, allocations: 3.938 kB / 351.1 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.09691, allocations: 41.66 kB / 351.2 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.558e-05/0.09701, allocations: 39.91 kB / 351.2 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.09712, allocations: 15.98 kB / 351.2 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.174e-05/0.09716, allocations: 15.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.646e-05/0.0972, allocations: 27.86 kB / 351.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.09723, allocations: 4 kB / 351.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.384e-05/0.09725, allocations: 4 kB / 351.3 MB, free: 3.191 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.215e-05/0.0973, allocations: 11.94 kB / 351.3 MB, free: 3.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.715e-05/0.09735, allocations: 27.8 kB / 351.3 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.09746, allocations: 47.81 kB / 351.4 MB, free: 3.105 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.09747, allocations: 3.938 kB / 351.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09747, allocations: 0 / 351.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.09749, allocations: 0 / 351.4 MB, free: 3.102 MB / 286.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.0004169/0.09791, allocations: 379.4 kB / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.09795, allocations: 8.031 kB / 351.8 MB, free: 2.672 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.127e-05/0.098, allocations: 34.75 kB / 351.8 MB, free: 2.629 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.151e-05/0.09804, allocations: 8.844 kB / 351.8 MB, free: 2.621 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.09826, allocations: 188.2 kB / 352 MB, free: 2.398 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.09829, allocations: 12.36 kB / 352 MB, free: 2.387 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.0983, allocations: 384 / 352 MB, free: 2.387 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003007/0.09861, allocations: 147.6 kB / 352.1 MB, free: 2.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.09863, allocations: 3.938 kB / 352.1 MB, free: 2.227 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.09864, allocations: 0 / 352.1 MB, free: 2.227 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.09865, allocations: 0 / 352.1 MB, free: 2.227 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.679e-05/0.0987, allocations: 23.98 kB / 352.2 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001651/0.09887, allocations: 169.6 kB / 352.3 MB, free: 1.988 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.09902, allocations: 70.66 kB / 352.4 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.065e-05/0.09909, allocations: 32.89 kB / 352.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.09911, allocations: 4 kB / 352.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.09915, allocations: 34.56 kB / 352.5 MB, free: 1.828 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.09916, allocations: 0 / 352.5 MB, free: 1.828 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001983/0.09936, allocations: 89.52 kB / 352.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.09942, allocations: 63.34 kB / 352.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.09955, allocations: 141.3 kB / 352.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.09957, allocations: 29.7 kB / 352.8 MB, free: 1.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.66e-05/0.09962, allocations: 88.14 kB / 352.9 MB, free: 1.391 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.09964, allocations: 0 / 352.9 MB, free: 1.391 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.09975, allocations: 33.61 kB / 352.9 MB, free: 1.352 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.09986, allocations: 310.8 kB / 353.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.419e-05/0.09989, allocations: 19.98 kB / 353.2 MB, free: 1.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.161e-05/0.09995, allocations: 54.88 kB / 353.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.793e-05/0.1001, allocations: 74.73 kB / 353.4 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1001, allocations: 4 kB / 353.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001242/0.1002, allocations: 85.5 kB / 353.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1002, allocations: 7.938 kB / 353.5 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.1002, allocations: 4.25 kB / 353.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1003, allocations: 4.188 kB / 353.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.036e-05/0.1003, allocations: 4 kB / 353.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1003, allocations: 11.92 kB / 353.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.378e-05/0.1003, allocations: 7.844 kB / 353.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.1004, allocations: 4 kB / 353.5 MB, free: 0.707 MB / 286.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.988e-05/0.1004, allocations: 121.8 kB / 353.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-05/0.1005, allocations: 77.52 kB / 353.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.663e-05/0.1006, allocations: 12.38 kB / 353.7 MB, free: 492 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1006, allocations: 4 kB / 353.7 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1006, allocations: 0 / 353.7 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1006, allocations: 0 / 353.7 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.1007, allocations: 173.6 kB / 353.9 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1007, allocations: 0 / 353.9 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-05/0.1008, allocations: 3.938 kB / 353.9 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1008, allocations: 3.938 kB / 353.9 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.1008, allocations: 0 / 353.9 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1008, allocations: 4 kB / 353.9 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1008, allocations: 0 / 353.9 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.1009, allocations: 101 kB / 354 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.022e-05/0.101, allocations: 96.92 kB / 354.1 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.101, allocations: 7.938 kB / 354.1 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.523e-05/0.101, allocations: 0 / 354.1 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.99e-06/0.101, allocations: 0 / 354.1 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.101, allocations: 7.938 kB / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of sorting global known variables: time 7.977e-05/0.1011, allocations: 99.27 kB / 354.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1011, allocations: 0 / 354.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002065/0.1013, allocations: 12 kB / 354.2 MB, free: 15.89 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: 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.0004971/0.1018, allocations: 0.663 MB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.102, allocations: 52.36 kB / 354.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.102, allocations: 4.062 kB / 354.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.102, allocations: 0 / 354.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.1024, allocations: 46.97 kB / 355 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.1035, allocations: 1.327 MB / 356.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.1037, allocations: 0.6963 MB / 357 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.026e-05/0.1038, allocations: 11.98 kB / 357 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.83e-05/0.1038, allocations: 11.44 kB / 357 MB, free: 12.91 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1038, allocations: 4 kB / 357 MB, free: 12.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01876/0.1226, allocations: 1.668 MB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.285/7.408, allocations: 6.344 kB / 358.7 MB, free: 11.33 MB / 302.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