Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002315/0.002321, allocations: 184 kB / 15.81 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.353/2.353, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001202/0.001202, allocations: 98.8 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.109/0.109, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005579/0.0005581, allocations: 18.78 kB / 392.1 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.0977, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002156/0.09992, allocations: 1.319 MB / 443.8 MB, free: 9.52 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.1011, allocations: 0.5194 MB / 444.3 MB, free: 8.992 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1012, allocations: 0 / 444.3 MB, free: 8.992 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.436e-05/0.1013, allocations: 3.938 kB / 444.3 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.1014, allocations: 7.984 kB / 444.3 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003821/0.1018, allocations: 51.83 kB / 444.4 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.102, allocations: 35.94 kB / 444.4 MB, free: 8.895 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.1021, allocations: 24.16 kB / 444.4 MB, free: 8.871 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.518e-05/0.1022, allocations: 23.92 kB / 444.5 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.9e-05/0.1023, allocations: 27.84 kB / 444.5 MB, free: 8.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.1023, allocations: 0 / 444.5 MB, free: 8.82 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.866e-05/0.1023, allocations: 4 kB / 444.5 MB, free: 8.816 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.274e-05/0.1024, allocations: 11.94 kB / 444.5 MB, free: 8.805 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.575e-05/0.1024, allocations: 37.64 kB / 444.5 MB, free: 8.762 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.656e-05/0.1025, allocations: 47.89 kB / 444.6 MB, free: 8.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1025, allocations: 4 kB / 444.6 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1025, allocations: 3.938 kB / 444.6 MB, free: 8.707 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.1026, allocations: 4 kB / 444.6 MB, free: 8.703 MB / 282.7 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.0005206/0.1031, allocations: 375.8 kB / 445 MB, free: 8.289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1031, allocations: 12.03 kB / 445 MB, free: 8.277 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.404e-05/0.1032, allocations: 34.56 kB / 445 MB, free: 8.234 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.842e-05/0.1032, allocations: 15.81 kB / 445 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.1034, allocations: 210.6 kB / 445.2 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.1035, allocations: 12 kB / 445.2 MB, free: 7.961 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.1035, allocations: 4 kB / 445.3 MB, free: 7.957 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.1039, allocations: 133 kB / 445.4 MB, free: 7.809 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1039, allocations: 0 / 445.4 MB, free: 7.809 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1039, allocations: 4 kB / 445.4 MB, free: 7.805 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.1039, allocations: 4 kB / 445.4 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.1041, allocations: 35.97 kB / 445.4 MB, free: 7.766 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004887/0.1046, allocations: 309.6 kB / 445.7 MB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002619/0.1049, allocations: 162.3 kB / 445.9 MB, free: 7.215 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.1049, allocations: 80 / 445.9 MB, free: 7.215 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.1052, allocations: 71.47 kB / 446 MB, free: 7.133 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.124e-06/0.1052, allocations: 4 kB / 446 MB, free: 7.129 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004173/0.1056, allocations: 121.6 kB / 446.1 MB, free: 7.004 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.1057, allocations: 85.06 kB / 446.2 MB, free: 6.902 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.1058, allocations: 145.6 kB / 446.3 MB, free: 6.75 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.1059, allocations: 29.7 kB / 446.3 MB, free: 6.715 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.575e-05/0.1059, allocations: 92.14 kB / 446.4 MB, free: 6.621 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.1059, allocations: 19.8 kB / 446.4 MB, free: 6.602 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.196e-06/0.106, allocations: 4 kB / 446.4 MB, free: 6.598 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.683e-05/0.106, allocations: 314.8 kB / 446.8 MB, free: 6.281 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.664e-05/0.1061, allocations: 27.98 kB / 446.8 MB, free: 6.254 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.1063, allocations: 73.06 kB / 446.9 MB, free: 6.164 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.1064, allocations: 28.06 kB / 446.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1064, allocations: 0 / 446.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002887/0.1067, allocations: 121.4 kB / 447 MB, free: 6.012 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.1067, allocations: 8 kB / 447 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1068, allocations: 0 / 447 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1068, allocations: 7.938 kB / 447 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.1069, allocations: 15.89 kB / 447 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1069, allocations: 11.97 kB / 447 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.409e-05/0.107, allocations: 4 kB / 447 MB, free: 5.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.1071, allocations: 8.156 kB / 447.1 MB, free: 5.957 MB / 282.7 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.0001035/0.1072, allocations: 129.4 kB / 447.2 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.195e-05/0.1073, allocations: 61.7 kB / 447.2 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.434e-05/0.1073, allocations: 16.3 kB / 447.3 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1073, allocations: 3.938 kB / 447.3 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1074, allocations: 3.953 kB / 447.3 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1074, allocations: 0 / 447.3 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000431/0.1078, allocations: 354.4 kB / 447.6 MB, free: 5.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1078, allocations: 0 / 447.6 MB, free: 5.328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.348e-05/0.1079, allocations: 11.94 kB / 447.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.1079, allocations: 3.984 kB / 447.6 MB, free: 5.312 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.108, allocations: 7.953 kB / 447.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.108, allocations: 0 / 447.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.108, allocations: 0 / 447.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.1083, allocations: 214 kB / 447.8 MB, free: 5.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.828e-05/0.1084, allocations: 101 kB / 447.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.1084, allocations: 3.953 kB / 447.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1085, allocations: 4 kB / 447.9 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.95e-05/0.1086, allocations: 4.125 kB / 448 MB, free: 4.941 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.1086, allocations: 15.98 kB / 448 MB, free: 4.926 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.903e-05/0.1087, allocations: 103.3 kB / 448.1 MB, free: 4.824 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1087, allocations: 0 / 448.1 MB, free: 4.824 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003512/0.109, allocations: 16 kB / 448.1 MB, free: 4.809 MB / 282.7 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.0006375/0.1097, allocations: 0.8422 MB / 448.9 MB, free: 3.934 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002733/0.11, allocations: 75.84 kB / 449 MB, free: 3.859 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.11, allocations: 0 / 449 MB, free: 3.859 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.652e-05/0.1101, allocations: 24.36 kB / 449 MB, free: 3.836 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.1105, allocations: 28.14 kB / 449 MB, free: 3.809 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.1118, allocations: 1.388 MB / 450.4 MB, free: 2.348 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.112, allocations: 0.7004 MB / 451.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.016e-05/0.1121, allocations: 8.672 kB / 451.1 MB, free: 1.613 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.631e-05/0.1122, allocations: 23.42 kB / 451.2 MB, free: 1.59 MB / 282.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1122, allocations: 0 / 451.2 MB, free: 1.59 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02535/0.1376, allocations: 1.749 MB / 452.9 MB, free: 15.85 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003262/0.138, allocations: 219.8 kB / 453.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.448/2.586, allocations: 0 / 453.1 MB, free: 15.61 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat