Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001176/0.001176, allocations: 92.48 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001585/0.001585, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003545, allocations: 4 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1273, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.001822/0.1292, allocations: 1.336 MB / 359.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008265/0.1301, allocations: 0.5185 MB / 360.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.443e-05/0.1302, allocations: 7.938 kB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.503e-05/0.1302, allocations: 7.938 kB / 360.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.1303, allocations: 7.938 kB / 360.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.1306, allocations: 55.81 kB / 360.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.18e-05/0.1307, allocations: 39.88 kB / 360.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.394e-05/0.1308, allocations: 16.22 kB / 360.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.1309, allocations: 35.84 kB / 360.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.22e-05/0.131, allocations: 23.84 kB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.131, allocations: 0 / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.019e-05/0.1311, allocations: 12 kB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.1311, allocations: 11.98 kB / 360.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.734e-05/0.1312, allocations: 41.64 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.1313, allocations: 47.89 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1313, allocations: 4 kB / 360.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1313, allocations: 0 / 360.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.1313, allocations: 0 / 360.4 MB, free: 11.6 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004873/0.1318, allocations: 383.2 kB / 360.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.1318, allocations: 8.031 kB / 360.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.387e-05/0.1319, allocations: 42.55 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.132, allocations: 27.8 kB / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.1322, allocations: 197.5 kB / 361 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.1323, allocations: 7.938 kB / 361 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.414e-05/0.1323, allocations: 8 kB / 361 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.1326, allocations: 137 kB / 361.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.1326, allocations: 3.938 kB / 361.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.1326, allocations: 0 / 361.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1326, allocations: 0 / 361.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.1327, allocations: 39.97 kB / 361.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004454/0.1332, allocations: 309.6 kB / 361.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.1334, allocations: 154.5 kB / 361.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.1335, allocations: 3.984 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001429/0.1336, allocations: 71.41 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.1336, allocations: 0 / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003126/0.1339, allocations: 133.4 kB / 361.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.134, allocations: 77.11 kB / 361.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.1341, allocations: 145.8 kB / 362.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.1342, allocations: 25.7 kB / 362.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.699e-05/0.1342, allocations: 96.12 kB / 362.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.1343, allocations: 11.81 kB / 362.2 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-06/0.1343, allocations: 4 kB / 362.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1344, allocations: 318.8 kB / 362.5 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.114e-05/0.1345, allocations: 23.98 kB / 362.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-05/0.1346, allocations: 65.08 kB / 362.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.457e-05/0.1346, allocations: 35.92 kB / 362.6 MB, free: 9.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1346, allocations: 0 / 362.6 MB, free: 9.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002051/0.1349, allocations: 121.4 kB / 362.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1349, allocations: 4 kB / 362.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1349, allocations: 160 / 362.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.1349, allocations: 8 kB / 362.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.99e-05/0.135, allocations: 15.98 kB / 362.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.135, allocations: 320 / 362.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.434e-05/0.1351, allocations: 4 kB / 362.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.1351, allocations: 15.95 kB / 362.8 MB, free: 8.863 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: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,triggeredSampler.trigger,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001046/0.1352, allocations: 129 kB / 362.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.681e-05/0.1353, allocations: 61.77 kB / 363 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.513e-05/0.1353, allocations: 12.31 kB / 363 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1353, allocations: 4 kB / 363 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1353, allocations: 0 / 363 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.1354, allocations: 4 kB / 363 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003762/0.1357, allocations: 350.3 kB / 363.4 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.1357, allocations: 3.984 kB / 363.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.444e-05/0.1358, allocations: 8 kB / 363.4 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.1358, allocations: 8 kB / 363.4 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.1358, allocations: 4 kB / 363.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.1358, allocations: 0 / 363.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.1359, allocations: 0 / 363.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002268/0.1361, allocations: 213.9 kB / 363.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.744e-05/0.1362, allocations: 101 kB / 363.7 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.1362, allocations: 4 kB / 363.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.6e-05/0.1363, allocations: 7.984 kB / 363.7 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.622e-05/0.1363, allocations: 11.89 kB / 363.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.1363, allocations: 0 / 363.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.557e-05/0.1364, allocations: 113.7 kB / 363.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1364, allocations: 0 / 363.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.1367, allocations: 16 kB / 363.8 MB, free: 7.719 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000625/0.1373, allocations: 0.8579 MB / 364.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001862/0.1375, allocations: 67.97 kB / 364.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1375, allocations: 0 / 364.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.599e-05/0.1376, allocations: 27.92 kB / 364.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.1378, allocations: 28.17 kB / 364.8 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.139, allocations: 1.37 MB / 366.2 MB, free: 5.262 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.1393, allocations: 0.7082 MB / 366.9 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.699e-05/0.1393, allocations: 4.672 kB / 366.9 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.093e-05/0.1394, allocations: 27.42 kB / 366.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1394, allocations: 0 / 366.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01207/0.1514, allocations: 1.732 MB / 368.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002299/0.1517, allocations: 218.8 kB / 368.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/1.977, allocations: 0 / 368.9 MB, free: 2.691 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat