Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_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.0009134/0.0009132, allocations: 93.53 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001139/0.001139, allocations: 192 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.61/1.61, allocations: 227.4 MB / 246 MB, free: 10.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002434/0.0002435, allocations: 7.984 kB / 306.8 MB, free: 1.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1287, allocations: 51.49 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001219/0.13, allocations: 0.5434 MB / 358.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003448/0.1303, allocations: 127.6 kB / 359 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.317e-05/0.1304, allocations: 0 / 359 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.846e-05/0.1305, allocations: 3.938 kB / 359 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.1306, allocations: 7.984 kB / 359 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.1309, allocations: 39.41 kB / 359 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.652e-05/0.131, allocations: 35.92 kB / 359.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.1311, allocations: 23.97 kB / 359.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.362e-05/0.1311, allocations: 15.86 kB / 359.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.031e-05/0.1312, allocations: 15.92 kB / 359.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.1312, allocations: 0 / 359.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.074e-05/0.1312, allocations: 0 / 359.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.659e-05/0.1313, allocations: 19.92 kB / 359.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.561e-05/0.1313, allocations: 33.64 kB / 359.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.419e-05/0.1314, allocations: 47.8 kB / 359.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1314, allocations: 0 / 359.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1314, allocations: 4 kB / 359.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.1314, allocations: 4 kB / 359.2 MB, free: 12.81 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.0004829/0.1319, allocations: 358.1 kB / 359.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.132, allocations: 8.031 kB / 359.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.132, allocations: 38.56 kB / 359.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.132, allocations: 7.906 kB / 359.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.1323, allocations: 194.9 kB / 359.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.1323, allocations: 0 / 359.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.45e-05/0.1323, allocations: 19.83 kB / 359.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.1327, allocations: 139.2 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.1327, allocations: 4 kB / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-06/0.1327, allocations: 0 / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.1327, allocations: 0 / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.66e-05/0.1328, allocations: 23.98 kB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.1329, allocations: 169.6 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.1331, allocations: 82.64 kB / 360.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.908e-05/0.1332, allocations: 44.84 kB / 360.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.944e-06/0.1332, allocations: 0 / 360.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1332, allocations: 34.56 kB / 360.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.1332, allocations: 0 / 360.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002114/0.1334, allocations: 101.7 kB / 360.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.1335, allocations: 67.31 kB / 360.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.1336, allocations: 144.2 kB / 360.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.1337, allocations: 25.7 kB / 360.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.1337, allocations: 88.14 kB / 360.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.1337, allocations: 11.92 kB / 360.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.1337, allocations: 0 / 360.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1339, allocations: 318.8 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.897e-05/0.1339, allocations: 7.984 kB / 361.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.282e-05/0.1339, allocations: 62.81 kB / 361.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.764e-05/0.134, allocations: 23.98 kB / 361.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.134, allocations: 0 / 361.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001378/0.1341, allocations: 97.36 kB / 361.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.1342, allocations: 4 kB / 361.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1342, allocations: 192 / 361.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.1342, allocations: 4 kB / 361.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.475e-05/0.1343, allocations: 20.17 kB / 361.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1343, allocations: 8 kB / 361.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.079e-05/0.1343, allocations: 11.94 kB / 361.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-06/0.1343, allocations: 7.938 kB / 361.3 MB, free: 10.47 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,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.0001313/0.1345, allocations: 125.8 kB / 361.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.946e-05/0.1346, allocations: 77.86 kB / 361.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.993e-05/0.1346, allocations: 16.72 kB / 361.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1346, allocations: 0 / 361.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1346, allocations: 0 / 361.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.1347, allocations: 7.984 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.1348, allocations: 173.6 kB / 361.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1348, allocations: 0 / 361.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-05/0.1349, allocations: 19.92 kB / 361.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1349, allocations: 0 / 361.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.1349, allocations: 3.953 kB / 361.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1349, allocations: 0 / 361.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1349, allocations: 4.078 kB / 361.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/0.1351, allocations: 117 kB / 361.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.474e-05/0.1351, allocations: 93 kB / 361.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.1352, allocations: 0 / 361.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.615e-05/0.1352, allocations: 7.953 kB / 361.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-06/0.1352, allocations: 3.938 kB / 361.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.1352, allocations: 4 kB / 361.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.13e-05/0.1353, allocations: 107.2 kB / 362.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1353, allocations: 0 / 362.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001972/0.1355, allocations: 8 kB / 362.1 MB, free: 9.613 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 (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.0005033/0.136, allocations: 0.6787 MB / 362.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001114/0.1361, allocations: 51.86 kB / 362.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1361, allocations: 0.5625 kB / 362.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.1362, allocations: 0 / 362.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.1365, allocations: 47.97 kB / 362.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007503/0.1372, allocations: 0.5378 MB / 363.4 MB, free: 8.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.1375, allocations: 0.6926 MB / 364.1 MB, free: 7.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3e-05/0.1376, allocations: 12.66 kB / 364.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.12e-05/0.1376, allocations: 19.5 kB / 364.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1376, allocations: 0 / 364.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.1536, allocations: 1.561 MB / 365.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002805/0.1539, allocations: 200.2 kB / 365.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.12, allocations: 0 / 365.9 MB, free: 5.805 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat