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.001001/0.001002, allocations: 87.75 kB / 16.31 MB, free: 6.387 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.001292/0.001293, allocations: 174.6 kB / 17.2 MB, free: 6.293 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.663/1.663, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002764, allocations: 8 kB / 300.9 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1112, allocations: 50.41 MB / 351.3 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.001214/0.1125, allocations: 0.5705 MB / 351.9 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003247/0.1128, allocations: 119.6 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.571e-05/0.1129, allocations: 4 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.1129, allocations: 0 / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.1131, allocations: 3.938 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.1133, allocations: 43.89 kB / 352.1 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.764e-05/0.1134, allocations: 31.86 kB / 352.1 MB, free: 3.156 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.1135, allocations: 15.98 kB / 352.1 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.061e-05/0.1136, allocations: 15.94 kB / 352.1 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.211e-05/0.1136, allocations: 11.92 kB / 352.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.1136, allocations: 0 / 352.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.087e-05/0.1136, allocations: 0 / 352.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.919e-05/0.1137, allocations: 11.94 kB / 352.2 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.793e-05/0.1137, allocations: 41.62 kB / 352.2 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.689e-05/0.1138, allocations: 35.92 kB / 352.2 MB, free: 3.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.1138, allocations: 0 / 352.2 MB, free: 3.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1138, allocations: 0 / 352.2 MB, free: 3.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.647e-06/0.1139, allocations: 4 kB / 352.2 MB, free: 3.016 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.0004054/0.1143, allocations: 355.4 kB / 352.6 MB, free: 2.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.1143, allocations: 8.031 kB / 352.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.43e-05/0.1144, allocations: 42.52 kB / 352.6 MB, free: 2.562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.285e-05/0.1144, allocations: 7.906 kB / 352.6 MB, free: 2.555 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.1146, allocations: 182.8 kB / 352.8 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.1146, allocations: 12 kB / 352.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.1147, allocations: 3.938 kB / 352.8 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.1149, allocations: 127.3 kB / 353 MB, free: 2.184 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.115, allocations: 3.984 kB / 353 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.115, allocations: 7.953 kB / 353 MB, free: 2.172 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.115, allocations: 0 / 353 MB, free: 2.172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.945e-05/0.115, allocations: 15.98 kB / 353 MB, free: 2.156 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001628/0.1152, allocations: 177.5 kB / 353.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.1153, allocations: 66.66 kB / 353.2 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.461e-05/0.1154, allocations: 36.89 kB / 353.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.1154, allocations: 0 / 353.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.1155, allocations: 38.56 kB / 353.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 7.81e-07/0.1155, allocations: 0 / 353.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001985/0.1157, allocations: 93.47 kB / 353.4 MB, free: 1.676 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.1157, allocations: 59.34 kB / 353.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.1159, allocations: 137.8 kB / 353.6 MB, free: 1.461 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1159, allocations: 25.7 kB / 353.6 MB, free: 1.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.779e-05/0.116, allocations: 88.14 kB / 353.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.222e-05/0.116, allocations: 0 / 353.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.683e-06/0.116, allocations: 4 kB / 353.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1162, allocations: 322.8 kB / 354 MB, free: 1.012 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.905e-05/0.1162, allocations: 8 kB / 354 MB, free: 1.004 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.895e-05/0.1162, allocations: 58.8 kB / 354.1 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.534e-05/0.1163, allocations: 19.94 kB / 354.1 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1163, allocations: 4 kB / 354.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001252/0.1164, allocations: 89.41 kB / 354.2 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1165, allocations: 4 kB / 354.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.1165, allocations: 8.25 kB / 354.2 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1165, allocations: 3.984 kB / 354.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.975e-05/0.1165, allocations: 4 kB / 354.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.1165, allocations: 7.953 kB / 354.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.181e-05/0.1166, allocations: 0 / 354.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.1166, allocations: 8 kB / 354.2 MB, free: 0.7695 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,unitDelay1.u,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.554e-05/0.1167, allocations: 124.7 kB / 354.3 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-05/0.1168, allocations: 73.58 kB / 354.4 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.039e-05/0.1168, allocations: 20.36 kB / 354.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1168, allocations: 0 / 354.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1168, allocations: 0 / 354.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1168, allocations: 3.953 kB / 354.4 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.117, allocations: 169.7 kB / 354.6 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.117, allocations: 0 / 354.6 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.399e-05/0.117, allocations: 3.938 kB / 354.6 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.117, allocations: 0 / 354.6 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-06/0.117, allocations: 3.984 kB / 354.6 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.117, allocations: 8 kB / 354.6 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.117, allocations: 0 / 354.6 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001215/0.1172, allocations: 101 kB / 354.7 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.591e-05/0.1172, allocations: 96.94 kB / 354.8 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.1173, allocations: 4 kB / 354.8 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.733e-05/0.1173, allocations: 0 / 354.8 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.855e-06/0.1173, allocations: 3.938 kB / 354.8 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.1173, allocations: 4 kB / 354.8 MB, free: 64 kB / 286.1 MB Notification: Performance of sorting global known variables: time 8.626e-05/0.1174, allocations: 99.27 kB / 354.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1174, allocations: 0 / 354.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000198/0.1176, allocations: 12 kB / 354.9 MB, free: 15.95 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004165/0.118, allocations: 0.6631 MB / 355.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.1181, allocations: 40.48 kB / 355.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1181, allocations: 4.188 kB / 355.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.72e-07/0.1182, allocations: 3.938 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.1185, allocations: 43.95 kB / 355.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006886/0.1192, allocations: 0.5049 MB / 356.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.1195, allocations: 0.6965 MB / 356.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.136e-05/0.1196, allocations: 7.984 kB / 356.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.629e-05/0.1196, allocations: 15.44 kB / 356.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1196, allocations: 4 kB / 356.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01245/0.1321, allocations: 1.444 MB / 358.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000192/0.1323, allocations: 205 kB / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.039, allocations: 0 / 358.6 MB, free: 12.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat