Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001585/0.001589, allocations: 185.5 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.251/2.251, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001199/0.001199, allocations: 102.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1357/0.1357, allocations: 12.58 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005798/0.0005799, allocations: 16.47 kB / 392.1 MB, free: 54.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1082, allocations: 50.37 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.001946/0.1102, allocations: 0.5725 MB / 443 MB, free: 10.26 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004814/0.1107, allocations: 112.6 kB / 443.2 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.968e-05/0.1109, allocations: 4 kB / 443.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.936e-05/0.1109, allocations: 3.938 kB / 443.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.1111, allocations: 3.938 kB / 443.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.1115, allocations: 27.97 kB / 443.2 MB, free: 10.11 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.1116, allocations: 27.91 kB / 443.2 MB, free: 10.08 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.1118, allocations: 19.92 kB / 443.2 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.014e-05/0.1119, allocations: 15.92 kB / 443.3 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.722e-05/0.1119, allocations: 11.94 kB / 443.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.112, allocations: 0 / 443.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.639e-05/0.112, allocations: 4 kB / 443.3 MB, free: 10.03 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.699e-05/0.1121, allocations: 19.91 kB / 443.3 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.251e-05/0.1121, allocations: 33.64 kB / 443.3 MB, free: 9.973 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.1122, allocations: 31.94 kB / 443.4 MB, free: 9.941 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1123, allocations: 0 / 443.4 MB, free: 9.941 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1123, allocations: 0 / 443.4 MB, free: 9.941 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1123, allocations: 0 / 443.4 MB, free: 9.941 MB / 282.7 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.0004504/0.1128, allocations: 359.9 kB / 443.7 MB, free: 9.543 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.736e-05/0.1128, allocations: 16.02 kB / 443.7 MB, free: 9.527 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.1129, allocations: 30.56 kB / 443.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.335e-05/0.113, allocations: 11.91 kB / 443.8 MB, free: 9.477 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.1132, allocations: 186.9 kB / 444 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.1133, allocations: 7.953 kB / 444 MB, free: 9.246 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.1133, allocations: 4 kB / 444 MB, free: 9.242 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004498/0.1138, allocations: 127.3 kB / 444.1 MB, free: 9.105 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.1138, allocations: 0 / 444.1 MB, free: 9.105 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.1138, allocations: 0 / 444.1 MB, free: 9.105 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1139, allocations: 0 / 444.1 MB, free: 9.105 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.593e-05/0.114, allocations: 20 kB / 444.1 MB, free: 9.086 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001928/0.1142, allocations: 181.4 kB / 444.3 MB, free: 8.859 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00024/0.1144, allocations: 70.59 kB / 444.4 MB, free: 8.781 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.1145, allocations: 4 kB / 444.4 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.1145, allocations: 34.55 kB / 444.4 MB, free: 8.734 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 2.685e-06/0.1145, allocations: 0 / 444.4 MB, free: 8.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003204/0.1149, allocations: 89.8 kB / 444.5 MB, free: 8.641 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.115, allocations: 59.39 kB / 444.5 MB, free: 8.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.1152, allocations: 133.8 kB / 444.7 MB, free: 8.43 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1152, allocations: 29.7 kB / 444.7 MB, free: 8.395 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.398e-05/0.1153, allocations: 88.14 kB / 444.8 MB, free: 8.305 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.1153, allocations: 4 kB / 444.8 MB, free: 8.301 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.1153, allocations: 0 / 444.8 MB, free: 8.301 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.623e-05/0.1154, allocations: 322.8 kB / 445.1 MB, free: 7.977 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.724e-05/0.1155, allocations: 4 kB / 445.1 MB, free: 7.973 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.761e-05/0.1156, allocations: 62.89 kB / 445.2 MB, free: 7.887 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.883e-05/0.1157, allocations: 20 kB / 445.2 MB, free: 7.867 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1157, allocations: 0 / 445.2 MB, free: 7.867 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002479/0.116, allocations: 93.39 kB / 445.3 MB, free: 7.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.116, allocations: 8 kB / 445.3 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.116, allocations: 3.984 kB / 445.3 MB, free: 7.758 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.944e-05/0.1161, allocations: 4 kB / 445.3 MB, free: 7.754 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.749e-05/0.1161, allocations: 4 kB / 445.3 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.1162, allocations: 0 / 445.3 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.19e-05/0.1163, allocations: 8 kB / 445.3 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.1163, allocations: 4 kB / 445.3 MB, free: 7.738 MB / 282.7 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 0.0001461/0.1165, allocations: 129.8 kB / 445.4 MB, free: 7.602 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001946/0.1167, allocations: 77.53 kB / 445.5 MB, free: 7.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/0.1168, allocations: 16.36 kB / 445.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1168, allocations: 0 / 445.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.1168, allocations: 4 kB / 445.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1169, allocations: 0 / 445.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.117, allocations: 165.7 kB / 445.7 MB, free: 7.285 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.117, allocations: 0 / 445.7 MB, free: 7.285 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.97e-05/0.1171, allocations: 7.938 kB / 445.7 MB, free: 7.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/0.1171, allocations: 7.938 kB / 445.7 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.1171, allocations: 8 kB / 445.7 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.1172, allocations: 0 / 445.7 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1172, allocations: 3.938 kB / 445.7 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.1174, allocations: 93.03 kB / 445.8 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.978e-05/0.1175, allocations: 96.94 kB / 445.9 MB, free: 7.035 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.1176, allocations: 7.953 kB / 445.9 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.013e-05/0.1176, allocations: 0 / 445.9 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.581e-06/0.1177, allocations: 0 / 445.9 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.1177, allocations: 4 kB / 445.9 MB, free: 7.023 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.1178, allocations: 107.2 kB / 446 MB, free: 6.918 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.01e-07/0.1178, allocations: 0 / 446 MB, free: 6.918 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004427/0.1183, allocations: 8 kB / 446 MB, free: 6.91 MB / 282.7 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.0006137/0.1189, allocations: 0.6475 MB / 446.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002339/0.1192, allocations: 47.98 kB / 446.7 MB, free: 6.184 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.1192, allocations: 0 / 446.7 MB, free: 6.184 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.683e-06/0.1192, allocations: 3.938 kB / 446.7 MB, free: 6.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005177/0.1198, allocations: 51.78 kB / 446.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.1212, allocations: 1.541 MB / 448.3 MB, free: 4.512 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.1214, allocations: 0.7004 MB / 449 MB, free: 3.785 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.328e-05/0.1215, allocations: 11.95 kB / 449 MB, free: 3.773 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.857e-05/0.1216, allocations: 15.44 kB / 449 MB, free: 3.758 MB / 282.7 MB Notification: Performance of SimCode: time 1.473e-06/0.1216, allocations: 0 / 449 MB, free: 3.758 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02407/0.1457, allocations: 1.459 MB / 450.5 MB, free: 2.312 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002917/0.1461, allocations: 204.5 kB / 450.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.499/2.645, allocations: 4 kB / 450.7 MB, free: 2.07 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat