Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.BooleanSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 104.4 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.001435/0.001435, 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.495/1.495, 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.001887/0.001887, allocations: 63.08 kB / 307.3 MB, free: 392 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1066, allocations: 50.54 MB / 357.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003421/0.1101, allocations: 1.911 MB / 359.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.1122, allocations: 1.216 MB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.1123, allocations: 11.94 kB / 361 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005558/0.1129, allocations: 151.5 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004202/0.1133, allocations: 155.4 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004593/0.1138, allocations: 171.4 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002552/0.114, allocations: 203.5 kB / 361.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.1142, allocations: 33.66 kB / 361.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1143, allocations: 75.69 kB / 361.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.1144, allocations: 83.62 kB / 361.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.232e-05/0.1145, allocations: 8 kB / 361.9 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.1146, allocations: 59.91 kB / 361.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.4e-05/0.1147, allocations: 39.84 kB / 362 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.907e-05/0.1148, allocations: 83.47 kB / 362.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.1151, allocations: 211.6 kB / 362.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.1151, allocations: 3.938 kB / 362.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1151, allocations: 4 kB / 362.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.1151, allocations: 0 / 362.3 MB, free: 9.406 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007493/0.1159, allocations: 0.5079 MB / 362.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.1159, allocations: 12.03 kB / 362.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.138e-05/0.1159, allocations: 38.73 kB / 362.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.116, allocations: 24.66 kB / 362.9 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000336/0.1163, allocations: 274.7 kB / 363.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.1164, allocations: 12.31 kB / 363.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.1164, allocations: 7.938 kB / 363.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.1167, allocations: 163.6 kB / 363.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.1168, allocations: 7.969 kB / 363.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.1168, allocations: 4 kB / 363.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.1168, allocations: 0 / 363.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.1169, allocations: 39.92 kB / 363.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.1175, allocations: 454.5 kB / 363.8 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002495/0.1177, allocations: 130.5 kB / 363.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.821e-05/0.1178, allocations: 55.42 kB / 364 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.1179, allocations: 7.984 kB / 364 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/0.1181, allocations: 96.95 kB / 364.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.1181, allocations: 3.938 kB / 364.1 MB, free: 7.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003774/0.1185, allocations: 157.3 kB / 364.2 MB, free: 7.172 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.1186, allocations: 158.2 kB / 364.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.1189, allocations: 276.9 kB / 364.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.1189, allocations: 30.08 kB / 364.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.523e-05/0.119, allocations: 132.3 kB / 364.8 MB, free: 6.531 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.119, allocations: 15.81 kB / 364.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.1191, allocations: 29.7 kB / 364.9 MB, free: 6.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1192, allocations: 334.8 kB / 365.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.708e-05/0.1193, allocations: 23.98 kB / 365.2 MB, free: 6.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.1194, allocations: 78.44 kB / 365.3 MB, free: 6.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.1196, allocations: 89.33 kB / 365.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1196, allocations: 4.031 kB / 365.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002531/0.1199, allocations: 129.3 kB / 365.5 MB, free: 5.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1199, allocations: 11.98 kB / 365.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1199, allocations: 0 / 365.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.1199, allocations: 4 kB / 365.5 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.858e-05/0.12, allocations: 11.94 kB / 365.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.12, allocations: 4 kB / 365.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.702e-05/0.1201, allocations: 19.86 kB / 365.6 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.1201, allocations: 8.156 kB / 365.6 MB, free: 5.723 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 0.0001315/0.1203, allocations: 141.8 kB / 365.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.775e-05/0.1204, allocations: 73.36 kB / 365.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.9e-05/0.1204, allocations: 21.7 kB / 365.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1204, allocations: 4 kB / 365.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1204, allocations: 0 / 365.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1204, allocations: 3.938 kB / 365.8 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002278/0.1207, allocations: 233.6 kB / 366 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.1207, allocations: 8.062 kB / 366 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.027e-05/0.1207, allocations: 11.92 kB / 366.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1207, allocations: 3.938 kB / 366.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1208, allocations: 8 kB / 366.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1208, allocations: 0 / 366.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1208, allocations: 0 / 366.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.121, allocations: 183.2 kB / 366.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1212, allocations: 108.8 kB / 366.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.1212, allocations: 8.047 kB / 366.4 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.593e-05/0.1213, allocations: 12 kB / 366.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.1213, allocations: 3.938 kB / 366.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.1213, allocations: 11.98 kB / 366.4 MB, free: 4.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002095/0.1216, allocations: 200.5 kB / 366.6 MB, free: 4.598 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1216, allocations: 4 kB / 366.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1218, allocations: 32 kB / 366.6 MB, free: 4.562 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002015/0.1239, allocations: 1.02 MB / 367.6 MB, free: 3.664 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000244/0.1241, allocations: 79.91 kB / 367.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1241, allocations: 4 kB / 367.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.063e-05/0.1242, allocations: 35.86 kB / 367.8 MB, free: 3.547 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.1246, allocations: 63.17 kB / 367.8 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.1271, allocations: 2.02 MB / 369.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.1275, allocations: 0.7319 MB / 370.6 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.671e-05/0.1276, allocations: 29.52 kB / 370.6 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.1277, allocations: 51.36 kB / 370.6 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1277, allocations: 0 / 370.6 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3241/0.4518, allocations: 4.722 MB / 375.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.18/8.632, allocations: 6.297 kB / 375.4 MB, free: 19.45 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_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_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1)