Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 96.86 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.001103/0.001103, 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.436/1.436, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003786, allocations: 9.375 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1404, allocations: 50.42 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002128/0.1425, allocations: 1.326 MB / 352.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009252/0.1435, allocations: 487.1 kB / 353 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.1436, allocations: 3.938 kB / 353 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.155e-05/0.1437, allocations: 0 / 353 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.1438, allocations: 15.92 kB / 353.1 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.1442, allocations: 51.83 kB / 353.1 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.1444, allocations: 39.94 kB / 353.1 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.1445, allocations: 20.16 kB / 353.2 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.373e-05/0.1446, allocations: 23.86 kB / 353.2 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.023e-05/0.1447, allocations: 23.84 kB / 353.2 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.703e-05/0.1447, allocations: 4 kB / 353.2 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.508e-05/0.1447, allocations: 0 / 353.2 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.721e-05/0.1448, allocations: 15.94 kB / 353.2 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.612e-05/0.1448, allocations: 37.7 kB / 353.3 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.1449, allocations: 55.83 kB / 353.3 MB, free: 9.473 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1449, allocations: 0 / 353.3 MB, free: 9.473 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.145, allocations: 0 / 353.3 MB, free: 9.473 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.145, allocations: 0 / 353.3 MB, free: 9.473 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006021/0.1456, allocations: 375 kB / 353.7 MB, free: 9.059 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.1457, allocations: 12.03 kB / 353.7 MB, free: 9.047 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.368e-05/0.1457, allocations: 38.55 kB / 353.7 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.968e-05/0.1458, allocations: 19.77 kB / 353.8 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.146, allocations: 190.9 kB / 353.9 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1461, allocations: 8 kB / 353.9 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.1461, allocations: 11.92 kB / 354 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003476/0.1464, allocations: 148.9 kB / 354.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.1465, allocations: 4 kB / 354.1 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1465, allocations: 7.953 kB / 354.1 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.1465, allocations: 0 / 354.1 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.1466, allocations: 39.95 kB / 354.2 MB, free: 8.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005519/0.1472, allocations: 305.7 kB / 354.5 MB, free: 8.168 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.1475, allocations: 154.4 kB / 354.6 MB, free: 7.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.162e-05/0.1475, allocations: 8.016 kB / 354.6 MB, free: 7.973 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001636/0.1477, allocations: 63.41 kB / 354.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.774e-06/0.1477, allocations: 0 / 354.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003398/0.148, allocations: 129.4 kB / 354.8 MB, free: 7.766 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.682e-05/0.1481, allocations: 81.11 kB / 354.9 MB, free: 7.668 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.1483, allocations: 144.6 kB / 355 MB, free: 7.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.1483, allocations: 29.7 kB / 355 MB, free: 7.484 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.424e-05/0.1484, allocations: 96.19 kB / 355.1 MB, free: 7.387 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.1484, allocations: 11.81 kB / 355.2 MB, free: 7.375 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-06/0.1484, allocations: 4 kB / 355.2 MB, free: 7.371 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1486, allocations: 322.8 kB / 355.5 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.867e-05/0.1486, allocations: 19.98 kB / 355.5 MB, free: 7.027 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.263e-05/0.1487, allocations: 69.02 kB / 355.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.512e-05/0.1488, allocations: 31.98 kB / 355.6 MB, free: 6.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1488, allocations: 3.953 kB / 355.6 MB, free: 6.906 MB / 286.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002222/0.149, allocations: 117.5 kB / 355.7 MB, free: 6.785 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.1491, allocations: 8 kB / 355.7 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1491, allocations: 0 / 355.7 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.1491, allocations: 4 kB / 355.7 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.431e-05/0.1492, allocations: 12.3 kB / 355.7 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1492, allocations: 8.094 kB / 355.7 MB, free: 6.754 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.347e-05/0.1493, allocations: 15.94 kB / 355.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.1493, allocations: 4 kB / 355.8 MB, free: 6.734 MB / 286.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.0001132/0.1494, allocations: 126.6 kB / 355.9 MB, free: 6.602 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.088e-05/0.1495, allocations: 57.55 kB / 355.9 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.281e-05/0.1496, allocations: 12.31 kB / 356 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.1496, allocations: 4 kB / 356 MB, free: 6.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.508e-05/0.1496, allocations: 4.172 kB / 356 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1496, allocations: 0 / 356 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004272/0.1501, allocations: 354.4 kB / 356.3 MB, free: 6.113 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1501, allocations: 0 / 356.3 MB, free: 6.113 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.258e-05/0.1501, allocations: 11.98 kB / 356.3 MB, free: 6.102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1502, allocations: 3.938 kB / 356.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.1502, allocations: 4 kB / 356.3 MB, free: 6.094 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1502, allocations: 0 / 356.3 MB, free: 6.094 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1502, allocations: 3.938 kB / 356.3 MB, free: 6.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.1505, allocations: 221.9 kB / 356.5 MB, free: 5.848 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.982e-05/0.1505, allocations: 93 kB / 356.6 MB, free: 5.738 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.1506, allocations: 4 kB / 356.6 MB, free: 5.734 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.117e-05/0.1507, allocations: 15.98 kB / 356.7 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.1507, allocations: 0 / 356.7 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.1507, allocations: 4 kB / 356.7 MB, free: 5.715 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.821e-05/0.1508, allocations: 108.8 kB / 356.8 MB, free: 5.609 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.1508, allocations: 0 / 356.8 MB, free: 5.609 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.1511, allocations: 23.89 kB / 356.8 MB, free: 5.586 MB / 286.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.0006349/0.1517, allocations: 0.8539 MB / 357.6 MB, free: 4.699 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001803/0.1519, allocations: 68.09 kB / 357.7 MB, free: 4.633 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1519, allocations: 4.125 kB / 357.7 MB, free: 4.629 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.424e-05/0.152, allocations: 19.98 kB / 357.7 MB, free: 4.609 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.1523, allocations: 29.47 kB / 357.8 MB, free: 4.582 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.1536, allocations: 1.371 MB / 359.1 MB, free: 3.133 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.1539, allocations: 0.7121 MB / 359.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.246e-05/0.1539, allocations: 4.984 kB / 359.9 MB, free: 2.391 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/0.154, allocations: 23.42 kB / 359.9 MB, free: 2.367 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.154, allocations: 384 / 359.9 MB, free: 2.367 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01287/0.1669, allocations: 1.727 MB / 361.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001968/0.1671, allocations: 206.3 kB / 361.8 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.132, allocations: 6.5 kB / 361.8 MB, free: 0.5742 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat