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.001006/0.001006, allocations: 98.42 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 192.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002406/0.0002408, allocations: 8 kB / 306.8 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1218, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.001936/0.1238, allocations: 1.34 MB / 359.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009388/0.1247, allocations: 0.5224 MB / 360.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.652e-05/0.1248, allocations: 0 / 360.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.342e-05/0.1249, allocations: 11.94 kB / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.125, allocations: 11.91 kB / 360.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.1253, allocations: 51.89 kB / 360.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.1255, allocations: 59.78 kB / 360.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.1256, allocations: 20.2 kB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.1257, allocations: 27.91 kB / 360.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.219e-05/0.1258, allocations: 27.84 kB / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.1258, allocations: 4 kB / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.437e-05/0.1259, allocations: 8 kB / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.395e-05/0.1259, allocations: 19.91 kB / 360.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.493e-05/0.126, allocations: 37.64 kB / 360.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.1261, allocations: 51.84 kB / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1261, allocations: 0 / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1261, allocations: 0 / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1261, allocations: 3.938 kB / 360.5 MB, free: 11.53 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.0005582/0.1267, allocations: 386 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1267, allocations: 12.03 kB / 360.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.45e-05/0.1268, allocations: 42.55 kB / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.1269, allocations: 23.8 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.1272, allocations: 190.8 kB / 361.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.1272, allocations: 11.94 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.1272, allocations: 8 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.1275, allocations: 137 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.1276, allocations: 0 / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.1276, allocations: 8 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1276, allocations: 0 / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.1277, allocations: 35.91 kB / 361.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004942/0.1282, allocations: 317.6 kB / 361.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.1285, allocations: 154.3 kB / 361.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.325e-05/0.1286, allocations: 41.69 kB / 361.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1286, allocations: 0 / 361.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001577/0.1288, allocations: 67.34 kB / 361.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 3.567e-06/0.1288, allocations: 0 / 361.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003352/0.1291, allocations: 129.4 kB / 362 MB, free: 9.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.1292, allocations: 89.05 kB / 362.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1293, allocations: 145.8 kB / 362.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.1294, allocations: 25.7 kB / 362.3 MB, free: 9.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.529e-05/0.1294, allocations: 92.14 kB / 362.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.1295, allocations: 15.81 kB / 362.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.1295, allocations: 0 / 362.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1296, allocations: 322.8 kB / 362.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.056e-05/0.1297, allocations: 19.98 kB / 362.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.265e-05/0.1298, allocations: 61.39 kB / 362.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.452e-05/0.1299, allocations: 35.98 kB / 362.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1299, allocations: 3.938 kB / 362.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002026/0.1301, allocations: 121.5 kB / 362.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.1301, allocations: 4 kB / 363 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1301, allocations: 0 / 363 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.1301, allocations: 4.188 kB / 363 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.062e-05/0.1302, allocations: 15.98 kB / 363 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.1302, allocations: 0 / 363 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.541e-05/0.1303, allocations: 11.95 kB / 363 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.1303, allocations: 11.97 kB / 363 MB, free: 8.742 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.0001249/0.1304, allocations: 129.5 kB / 363.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.43e-05/0.1305, allocations: 57.59 kB / 363.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.555e-05/0.1306, allocations: 12.31 kB / 363.2 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.1306, allocations: 3.938 kB / 363.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1306, allocations: 0 / 363.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.1306, allocations: 7.984 kB / 363.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000361/0.131, allocations: 350.4 kB / 363.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.131, allocations: 4 kB / 363.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.637e-05/0.131, allocations: 12 kB / 363.6 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.1311, allocations: 4 kB / 363.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.1311, allocations: 3.938 kB / 363.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.1311, allocations: 3.984 kB / 363.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.1311, allocations: 3.953 kB / 363.6 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002157/0.1313, allocations: 200.2 kB / 363.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.629e-05/0.1314, allocations: 97 kB / 363.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.265e-05/0.1314, allocations: 4 kB / 363.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.79e-05/0.1315, allocations: 7.984 kB / 363.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.1315, allocations: 4 kB / 363.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.1316, allocations: 8.078 kB / 363.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.183e-05/0.1316, allocations: 113.8 kB / 364 MB, free: 7.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.383e-06/0.1316, allocations: 0 / 364 MB, free: 7.629 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002346/0.1319, allocations: 19.94 kB / 364 MB, free: 7.609 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.0006113/0.1325, allocations: 0.7719 MB / 364.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001817/0.1327, allocations: 63.91 kB / 364.9 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1327, allocations: 0 / 364.9 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.478e-05/0.1328, allocations: 31.91 kB / 364.9 MB, free: 6.711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.1331, allocations: 28.16 kB / 364.9 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009978/0.1341, allocations: 0.6372 MB / 365.5 MB, free: 5.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.1345, allocations: 0.7004 MB / 366.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.186e-05/0.1346, allocations: 12.83 kB / 366.3 MB, free: 5.242 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.568e-05/0.1346, allocations: 27.44 kB / 366.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1346, allocations: 0 / 366.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01259/0.1472, allocations: 1.742 MB / 368 MB, free: 3.652 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003646/0.1477, allocations: 215.9 kB / 368.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.956/2.103, allocations: 6.953 kB / 368.2 MB, free: 3.402 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