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.001381/0.001382, allocations: 177.1 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009375/0.0009377, allocations: 90.28 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1278/0.1278, allocations: 12.6 MB / 331.2 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0005136/0.0005138, allocations: 13.75 kB / 392.1 MB, free: 54.84 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1022, allocations: 50.38 MB / 442.5 MB, free: 10.86 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.00208/0.1043, allocations: 1.318 MB / 443.8 MB, free: 9.531 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0008708/0.1052, allocations: 0.535 MB / 444.4 MB, free: 8.988 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.1053, allocations: 0 / 444.4 MB, free: 8.988 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 4.021e-05/0.1054, allocations: 3.938 kB / 444.4 MB, free: 8.984 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.1056, allocations: 7.938 kB / 444.4 MB, free: 8.977 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003558/0.1059, allocations: 47.89 kB / 444.4 MB, free: 8.93 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001047/0.106, allocations: 63.77 kB / 444.5 MB, free: 8.867 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.1062, allocations: 24.2 kB / 444.5 MB, free: 8.844 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 6.384e-05/0.1062, allocations: 23.92 kB / 444.5 MB, free: 8.82 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.1063, allocations: 23.86 kB / 444.5 MB, free: 8.797 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.1063, allocations: 7.984 kB / 444.6 MB, free: 8.789 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.412e-05/0.1063, allocations: 0 / 444.6 MB, free: 8.789 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 3.465e-05/0.1064, allocations: 15.92 kB / 444.6 MB, free: 8.773 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.1064, allocations: 37.64 kB / 444.6 MB, free: 8.73 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.1065, allocations: 47.91 kB / 444.7 MB, free: 8.684 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1066, allocations: 0 / 444.7 MB, free: 8.684 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1066, allocations: 0 / 444.7 MB, free: 8.684 MB / 282.8 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.1066, allocations: 0 / 444.7 MB, free: 8.684 MB / 282.8 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.000444/0.107, allocations: 383.8 kB / 445 MB, free: 8.262 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1071, allocations: 12.03 kB / 445 MB, free: 8.25 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.395e-05/0.1071, allocations: 38.55 kB / 445.1 MB, free: 8.203 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.1072, allocations: 11.81 kB / 445.1 MB, free: 8.191 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.1073, allocations: 194.8 kB / 445.3 MB, free: 7.961 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.1073, allocations: 8 kB / 445.3 MB, free: 7.953 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.1074, allocations: 7.984 kB / 445.3 MB, free: 7.945 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.1076, allocations: 137 kB / 445.4 MB, free: 7.793 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1077, allocations: 0 / 445.4 MB, free: 7.793 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.1077, allocations: 4 kB / 445.4 MB, free: 7.789 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.1077, allocations: 0 / 445.4 MB, free: 7.789 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.1078, allocations: 43.91 kB / 445.5 MB, free: 7.746 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004282/0.1082, allocations: 309.6 kB / 445.8 MB, free: 7.391 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.1084, allocations: 158.2 kB / 445.9 MB, free: 7.199 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.071e-05/0.1085, allocations: 41.78 kB / 446 MB, free: 7.152 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.1086, allocations: 0 / 446 MB, free: 7.152 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001507/0.1087, allocations: 75.34 kB / 446 MB, free: 7.066 MB / 282.8 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.1087, allocations: 0 / 446 MB, free: 7.066 MB / 282.8 MB Notification: Performance of matching and sorting (n=9): time 0.0003082/0.109, allocations: 125.5 kB / 446.2 MB, free: 6.938 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.1091, allocations: 85.19 kB / 446.3 MB, free: 6.836 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.1092, allocations: 153.5 kB / 446.4 MB, free: 6.676 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.1092, allocations: 29.69 kB / 446.4 MB, free: 6.641 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.83e-05/0.1093, allocations: 92.14 kB / 446.5 MB, free: 6.547 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.525e-05/0.1093, allocations: 11.81 kB / 446.5 MB, free: 6.535 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.1093, allocations: 8 kB / 446.5 MB, free: 6.527 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 5.52e-05/0.1094, allocations: 318.8 kB / 446.9 MB, free: 6.207 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.782e-05/0.1094, allocations: 19.98 kB / 446.9 MB, free: 6.188 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.699e-05/0.1095, allocations: 69.08 kB / 446.9 MB, free: 6.102 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.831e-05/0.1096, allocations: 27.98 kB / 447 MB, free: 6.074 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1096, allocations: 0 / 447 MB, free: 6.074 MB / 282.8 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001745/0.1098, allocations: 121.5 kB / 447.1 MB, free: 5.949 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1098, allocations: 4 kB / 447.1 MB, free: 5.945 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1098, allocations: 3.938 kB / 447.1 MB, free: 5.941 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.1098, allocations: 11.94 kB / 447.1 MB, free: 5.93 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.888e-05/0.1099, allocations: 15.98 kB / 447.1 MB, free: 5.914 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.1099, allocations: 0 / 447.1 MB, free: 5.914 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.228e-05/0.11, allocations: 4 kB / 447.1 MB, free: 5.91 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.11, allocations: 12.14 kB / 447.1 MB, free: 5.898 MB / 282.8 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 8.041e-05/0.1101, allocations: 133.3 kB / 447.3 MB, free: 5.762 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.1101, allocations: 53.59 kB / 447.3 MB, free: 5.703 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.55e-05/0.1102, allocations: 16.31 kB / 447.3 MB, free: 5.684 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.1102, allocations: 0 / 447.3 MB, free: 5.684 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1102, allocations: 3.953 kB / 447.3 MB, free: 5.68 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.1102, allocations: 4 kB / 447.3 MB, free: 5.676 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002675/0.1105, allocations: 358.4 kB / 447.7 MB, free: 5.27 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1105, allocations: 0 / 447.7 MB, free: 5.27 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.686e-05/0.1106, allocations: 8.375 kB / 447.7 MB, free: 5.262 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1106, allocations: 4 kB / 447.7 MB, free: 5.258 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.1106, allocations: 3.953 kB / 447.7 MB, free: 5.254 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.1106, allocations: 4 kB / 447.7 MB, free: 5.25 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1106, allocations: 3.984 kB / 447.7 MB, free: 5.246 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001777/0.1108, allocations: 208.2 kB / 447.9 MB, free: 5.023 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.1109, allocations: 93 kB / 448 MB, free: 4.914 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.1109, allocations: 0 / 448 MB, free: 4.914 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.092e-05/0.111, allocations: 11.94 kB / 448 MB, free: 4.902 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.111, allocations: 8 kB / 448 MB, free: 4.895 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.111, allocations: 96 / 448 MB, free: 4.895 MB / 282.8 MB Notification: Performance of sorting global known variables: time 5.327e-05/0.1111, allocations: 119.2 kB / 448.1 MB, free: 4.777 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1111, allocations: 0 / 448.1 MB, free: 4.777 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.000208/0.1113, allocations: 12 kB / 448.2 MB, free: 4.766 MB / 282.8 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.0004367/0.1117, allocations: 0.7678 MB / 448.9 MB, free: 3.969 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001912/0.1119, allocations: 67.84 kB / 449 MB, free: 3.902 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.112, allocations: 0 / 449 MB, free: 3.902 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 6.825e-05/0.112, allocations: 27.92 kB / 449 MB, free: 3.875 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.1124, allocations: 36.28 kB / 449.1 MB, free: 3.84 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009193/0.1133, allocations: 0.6259 MB / 449.7 MB, free: 3.148 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001364/0.1135, allocations: 0.7044 MB / 450.4 MB, free: 2.418 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 4.474e-05/0.1135, allocations: 12.64 kB / 450.4 MB, free: 2.406 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.518e-05/0.1136, allocations: 23.44 kB / 450.4 MB, free: 2.383 MB / 282.8 MB Notification: Performance of SimCode: time 7.42e-07/0.1136, allocations: 0 / 450.4 MB, free: 2.383 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01323/0.1269, allocations: 1.751 MB / 452.2 MB, free: 0.6445 MB / 282.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/0.1271, allocations: 234.4 kB / 452.4 MB, free: 404 kB / 282.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.605/1.732, allocations: 0 / 452.4 MB, free: 404 kB / 282.8 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