Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001128/0.001128, allocations: 106.3 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.001281/0.001282, 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.386/1.386, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 46.27 kB / 300.7 MB, free: 5.711 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1043, allocations: 49.44 MB / 350.2 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002673/0.1071, allocations: 0.8367 MB / 351 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003991/0.1075, allocations: 123.6 kB / 351.1 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.66e-05/0.1076, allocations: 0 / 351.1 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.1078, allocations: 11.86 kB / 351.1 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001155/0.1079, allocations: 11.94 kB / 351.1 MB, free: 3.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.1081, allocations: 39.89 kB / 351.2 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.883e-05/0.1082, allocations: 35.92 kB / 351.2 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.1083, allocations: 31.92 kB / 351.3 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.874e-05/0.1084, allocations: 11.94 kB / 351.3 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.273e-05/0.1084, allocations: 15.92 kB / 351.3 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.1085, allocations: 4 kB / 351.3 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.355e-05/0.1085, allocations: 4 kB / 351.3 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.999e-05/0.1085, allocations: 23.91 kB / 351.3 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.64e-05/0.1086, allocations: 31.73 kB / 351.3 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.1087, allocations: 47.83 kB / 351.4 MB, free: 3.027 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1087, allocations: 3.984 kB / 351.4 MB, free: 3.023 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1087, allocations: 0 / 351.4 MB, free: 3.023 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1087, allocations: 0 / 351.4 MB, free: 3.023 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.0004759/0.1092, allocations: 391.4 kB / 351.8 MB, free: 2.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1093, allocations: 8.031 kB / 351.8 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.244e-05/0.1093, allocations: 34.75 kB / 351.8 MB, free: 2.539 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.1093, allocations: 20.69 kB / 351.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.1095, allocations: 190.5 kB / 352 MB, free: 2.297 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.1095, allocations: 4.375 kB / 352 MB, free: 2.293 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.1095, allocations: 4.375 kB / 352 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.1098, allocations: 155.5 kB / 352.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.1098, allocations: 7.938 kB / 352.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.1099, allocations: 0 / 352.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1099, allocations: 0 / 352.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.988e-05/0.1099, allocations: 27.92 kB / 352.2 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.1101, allocations: 169.6 kB / 352.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.1102, allocations: 82.69 kB / 352.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.235e-05/0.1103, allocations: 40.84 kB / 352.5 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.063e-06/0.1103, allocations: 0 / 352.5 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.1103, allocations: 34.56 kB / 352.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.1103, allocations: 0 / 352.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002006/0.1105, allocations: 109.6 kB / 352.6 MB, free: 1.586 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.1106, allocations: 55.41 kB / 352.7 MB, free: 1.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.1107, allocations: 149.8 kB / 352.8 MB, free: 1.363 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.1107, allocations: 25.7 kB / 352.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.1108, allocations: 84.14 kB / 353 MB, free: 1.246 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.1108, allocations: 15.89 kB / 353 MB, free: 1.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.1108, allocations: 21.72 kB / 353 MB, free: 1.203 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.789e-05/0.1109, allocations: 318.8 kB / 353.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.256e-05/0.111, allocations: 8 kB / 353.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.882e-05/0.111, allocations: 62.86 kB / 353.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.637e-05/0.1111, allocations: 74.75 kB / 353.4 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1111, allocations: 0 / 353.4 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001281/0.1113, allocations: 93.39 kB / 353.5 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1113, allocations: 16.19 kB / 353.5 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1113, allocations: 0 / 353.5 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.1113, allocations: 4 kB / 353.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.845e-05/0.1114, allocations: 12 kB / 353.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.1114, allocations: 7.984 kB / 353.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.122e-05/0.1115, allocations: 15.88 kB / 353.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.1115, allocations: 4 kB / 353.6 MB, free: 0.5352 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 (sum.y,sum.u[2],sum.u[1],const.y,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 9.439e-05/0.1116, allocations: 125.8 kB / 353.7 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.689e-05/0.1117, allocations: 85.52 kB / 353.8 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.806e-05/0.1117, allocations: 12.72 kB / 353.8 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.1117, allocations: 3.984 kB / 353.8 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1117, allocations: 0 / 353.8 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1117, allocations: 0 / 353.8 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.991e-05/0.1118, allocations: 177.6 kB / 354 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1119, allocations: 0 / 354 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.814e-05/0.1119, allocations: 15.94 kB / 354 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.1119, allocations: 4.125 kB / 354 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.112, allocations: 3.984 kB / 354 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.112, allocations: 3.938 kB / 354 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.112, allocations: 8 kB / 354 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001403/0.1121, allocations: 105 kB / 354.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.186e-05/0.1122, allocations: 100.8 kB / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.1122, allocations: 3.984 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.374e-05/0.1122, allocations: 4 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.053e-06/0.1122, allocations: 0 / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.1123, allocations: 0 / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.443e-05/0.1123, allocations: 110.2 kB / 354.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1123, allocations: 4 kB / 354.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002057/0.1125, allocations: 8 kB / 354.4 MB, free: 15.67 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,const.y,sum.u[1],sum.u[2],sum.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.0004543/0.113, allocations: 0.6786 MB / 355 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001314/0.1131, allocations: 59.97 kB / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1132, allocations: 0 / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.21e-07/0.1132, allocations: 0 / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.1135, allocations: 55.33 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.1146, allocations: 1.364 MB / 356.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.1148, allocations: 0.704 MB / 357.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.532e-05/0.1149, allocations: 4.672 kB / 357.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.128e-05/0.1149, allocations: 15.44 kB / 357.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1149, allocations: 4 kB / 357.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01851/0.1334, allocations: 1.787 MB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.37/7.504, allocations: 10.72 kB / 359 MB, free: 10.92 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,previous(unitDelay1.u),assignClock1.u,assignClock1.y,const.y,sum.u[1]