Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001683/0.001683, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.571/1.571, allocations: 227.7 MB / 247.1 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 68.08 kB / 307.3 MB, free: 396 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.1015, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002073/0.1036, allocations: 0.833 MB / 358.7 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003338/0.1039, allocations: 119.6 kB / 358.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.178e-05/0.104, allocations: 0 / 358.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.703e-05/0.1041, allocations: 7.922 kB / 358.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.1042, allocations: 15.94 kB / 358.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001777/0.1044, allocations: 35.89 kB / 358.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.668e-05/0.1045, allocations: 35.92 kB / 358.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.1046, allocations: 35.95 kB / 359 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.309e-05/0.1047, allocations: 23.81 kB / 359 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.212e-05/0.1047, allocations: 15.92 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.1048, allocations: 4 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.321e-05/0.1048, allocations: 4 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.449e-05/0.1048, allocations: 19.92 kB / 359 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.368e-05/0.1049, allocations: 31.8 kB / 359.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.766e-05/0.105, allocations: 59.75 kB / 359.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.105, allocations: 0 / 359.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.105, allocations: 0 / 359.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.105, allocations: 0 / 359.1 MB, free: 12.6 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004344/0.1055, allocations: 379.3 kB / 359.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.1055, allocations: 12.03 kB / 359.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.274e-05/0.1055, allocations: 34.75 kB / 359.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.451e-05/0.1056, allocations: 8.844 kB / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.1058, allocations: 200.1 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.184e-06/0.1058, allocations: 8.375 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.1058, allocations: 8.375 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002488/0.1061, allocations: 135.7 kB / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1061, allocations: 3.938 kB / 359.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-06/0.1061, allocations: 0 / 359.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1061, allocations: 4 kB / 359.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.886e-05/0.1062, allocations: 31.92 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.1063, allocations: 169.6 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.1064, allocations: 70.75 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.728e-05/0.1065, allocations: 48.83 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.55e-06/0.1065, allocations: 0 / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.1066, allocations: 34.56 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 7.72e-07/0.1066, allocations: 3.938 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001925/0.1068, allocations: 105.7 kB / 360.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.1068, allocations: 59.41 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.1069, allocations: 144.7 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.107, allocations: 29.7 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.107, allocations: 84.14 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.107, allocations: 11.89 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.1071, allocations: 25.72 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1072, allocations: 322.8 kB / 361 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.011e-05/0.1072, allocations: 8 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.499e-05/0.1073, allocations: 62.8 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.16e-05/0.1074, allocations: 74.75 kB / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1074, allocations: 0 / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001236/0.1075, allocations: 93.45 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1075, allocations: 11.94 kB / 361.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1075, allocations: 0 / 361.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.1076, allocations: 4 kB / 361.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.731e-05/0.1076, allocations: 15.94 kB / 361.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.1076, allocations: 7.984 kB / 361.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.451e-05/0.1077, allocations: 8.188 kB / 361.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.1077, allocations: 11.94 kB / 361.3 MB, free: 10.12 MB / 302.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.018e-05/0.1078, allocations: 125.8 kB / 361.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.1079, allocations: 85.45 kB / 361.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.1079, allocations: 16.72 kB / 361.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.1079, allocations: 0 / 361.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.108, allocations: 0 / 361.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.108, allocations: 0 / 361.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.1081, allocations: 177.5 kB / 361.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1081, allocations: 4 kB / 361.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.964e-05/0.1082, allocations: 12 kB / 361.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1082, allocations: 3.938 kB / 361.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/0.1082, allocations: 0 / 361.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.1082, allocations: 3.984 kB / 361.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1082, allocations: 0 / 361.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.1083, allocations: 105 kB / 361.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.739e-05/0.1084, allocations: 100.9 kB / 361.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.1084, allocations: 0 / 361.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.534e-05/0.1084, allocations: 15.97 kB / 361.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.861e-06/0.1085, allocations: 4 kB / 361.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.1085, allocations: 192 / 361.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.911e-05/0.1085, allocations: 103.3 kB / 362 MB, free: 9.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1085, allocations: 3.938 kB / 362 MB, free: 9.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001873/0.1087, allocations: 8 kB / 362 MB, free: 9.27 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.0004823/0.1092, allocations: 0.6826 MB / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.1094, allocations: 51.91 kB / 362.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1094, allocations: 0 / 362.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.1094, allocations: 0 / 362.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.1096, allocations: 59.08 kB / 362.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.1108, allocations: 1.36 MB / 364.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.1111, allocations: 0.704 MB / 364.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.394e-05/0.1111, allocations: 8.656 kB / 364.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.459e-05/0.1111, allocations: 15.44 kB / 364.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1111, allocations: 0 / 364.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.1332, allocations: 1.8 MB / 366.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.71, allocations: 11.67 kB / 366.7 MB, free: 4.516 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1)