Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 96.89 kB / 16.3 MB, free: 5.992 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.0009654/0.0009656, allocations: 181.3 kB / 17.2 MB, free: 5.906 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.589/1.589, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003399/0.00034, allocations: 5.5 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1429, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001397/0.1443, allocations: 0.5488 MB / 351.8 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003608/0.1447, allocations: 119.6 kB / 351.9 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.1448, allocations: 4 kB / 351.9 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.853e-05/0.1449, allocations: 3.938 kB / 351.9 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.145, allocations: 7.984 kB / 351.9 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002317/0.1453, allocations: 27.97 kB / 351.9 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.1454, allocations: 35.84 kB / 352 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.1456, allocations: 23.92 kB / 352 MB, free: 10.87 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.241e-05/0.1456, allocations: 11.92 kB / 352 MB, free: 10.86 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.362e-05/0.1457, allocations: 15.92 kB / 352 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.1457, allocations: 4 kB / 352 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.243e-05/0.1458, allocations: 0 / 352 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.1458, allocations: 15.92 kB / 352.1 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.79e-05/0.1459, allocations: 33.64 kB / 352.1 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.045e-05/0.146, allocations: 39.92 kB / 352.1 MB, free: 10.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.146, allocations: 0 / 352.1 MB, free: 10.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.146, allocations: 0 / 352.1 MB, free: 10.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.177e-06/0.146, allocations: 4 kB / 352.1 MB, free: 10.74 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.0005591/0.1466, allocations: 363.1 kB / 352.5 MB, free: 10.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.1466, allocations: 8.031 kB / 352.5 MB, free: 10.33 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.105e-05/0.1467, allocations: 42.44 kB / 352.5 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.1467, allocations: 15.84 kB / 352.5 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.147, allocations: 186.8 kB / 352.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.147, allocations: 8 kB / 352.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.147, allocations: 4 kB / 352.7 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.1473, allocations: 143.3 kB / 352.9 MB, free: 9.879 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.1474, allocations: 0 / 352.9 MB, free: 9.879 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.1474, allocations: 3.953 kB / 352.9 MB, free: 9.875 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.1474, allocations: 0 / 352.9 MB, free: 9.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.755e-05/0.1474, allocations: 23.92 kB / 352.9 MB, free: 9.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.1476, allocations: 173.7 kB / 353.1 MB, free: 9.633 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.1477, allocations: 74.7 kB / 353.2 MB, free: 9.551 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.1478, allocations: 3.938 kB / 353.2 MB, free: 9.547 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.1478, allocations: 34.5 kB / 353.2 MB, free: 9.504 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.1478, allocations: 4 kB / 353.2 MB, free: 9.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002456/0.1481, allocations: 101.8 kB / 353.3 MB, free: 9.395 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.1481, allocations: 59.36 kB / 353.4 MB, free: 9.324 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.1483, allocations: 152.4 kB / 353.5 MB, free: 9.164 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.1483, allocations: 25.7 kB / 353.5 MB, free: 9.133 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.366e-05/0.1484, allocations: 88.14 kB / 353.6 MB, free: 9.043 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.1484, allocations: 3.984 kB / 353.6 MB, free: 9.039 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.73e-06/0.1484, allocations: 4 kB / 353.6 MB, free: 9.035 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1486, allocations: 314.8 kB / 353.9 MB, free: 8.719 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.213e-05/0.1486, allocations: 11.98 kB / 353.9 MB, free: 8.707 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.732e-05/0.1487, allocations: 58.81 kB / 354 MB, free: 8.625 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.754e-05/0.1487, allocations: 23.98 kB / 354 MB, free: 8.602 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1487, allocations: 4 kB / 354 MB, free: 8.598 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001559/0.1489, allocations: 89.41 kB / 354.1 MB, free: 8.504 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1489, allocations: 4 kB / 354.1 MB, free: 8.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.1489, allocations: 4 kB / 354.1 MB, free: 8.496 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.1489, allocations: 0 / 354.1 MB, free: 8.496 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.546e-05/0.149, allocations: 23.98 kB / 354.1 MB, free: 8.473 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.1491, allocations: 7.891 kB / 354.1 MB, free: 8.465 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.728e-05/0.1491, allocations: 8.25 kB / 354.2 MB, free: 8.457 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.1491, allocations: 4 kB / 354.2 MB, free: 8.453 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 (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.0001085/0.1492, allocations: 125.8 kB / 354.3 MB, free: 8.32 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.786e-05/0.1493, allocations: 77.78 kB / 354.4 MB, free: 8.238 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.023e-05/0.1494, allocations: 16.7 kB / 354.4 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1494, allocations: 7.875 kB / 354.4 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1494, allocations: 0 / 354.4 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1494, allocations: 11.94 kB / 354.4 MB, free: 8.199 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.1495, allocations: 173.6 kB / 354.6 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1495, allocations: 3.938 kB / 354.6 MB, free: 7.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.687e-05/0.1496, allocations: 15.98 kB / 354.6 MB, free: 7.961 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1496, allocations: 0 / 354.6 MB, free: 7.961 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.1496, allocations: 4 kB / 354.6 MB, free: 7.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1496, allocations: 4 kB / 354.6 MB, free: 7.953 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1497, allocations: 0 / 354.6 MB, free: 7.953 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.1498, allocations: 116.9 kB / 354.7 MB, free: 7.82 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.685e-05/0.1499, allocations: 89 kB / 354.8 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.1499, allocations: 8 kB / 354.8 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.587e-05/0.1499, allocations: 4 kB / 354.8 MB, free: 7.703 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.745e-06/0.1499, allocations: 3.938 kB / 354.8 MB, free: 7.699 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.1499, allocations: 0 / 354.8 MB, free: 7.699 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001225/0.1501, allocations: 109.3 kB / 354.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1501, allocations: 0 / 354.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002114/0.1503, allocations: 12 kB / 354.9 MB, free: 7.582 MB / 286.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.0005393/0.1508, allocations: 0.671 MB / 355.6 MB, free: 6.883 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001113/0.151, allocations: 47.86 kB / 355.6 MB, free: 6.836 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.151, allocations: 0 / 355.6 MB, free: 6.836 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.151, allocations: 0 / 355.6 MB, free: 6.836 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.1512, allocations: 48.58 kB / 355.7 MB, free: 6.789 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1525, allocations: 1.586 MB / 357.3 MB, free: 5.125 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.1529, allocations: 0.7005 MB / 358 MB, free: 4.398 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.678e-05/0.153, allocations: 4.672 kB / 358 MB, free: 4.391 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.129e-05/0.153, allocations: 19.42 kB / 358 MB, free: 4.371 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.153, allocations: 0 / 358 MB, free: 4.371 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01453/0.1676, allocations: 1.545 MB / 359.5 MB, free: 2.984 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003458/0.168, allocations: 202.9 kB / 359.7 MB, free: 2.742 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/1.935, allocations: 4 kB / 359.7 MB, free: 2.738 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat