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.001358/0.001358, allocations: 171.9 kB / 16.14 MB, free: 5.656 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.569/1.569, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0008831/0.0008833, allocations: 89.62 kB / 270.7 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08636/0.08636, allocations: 12.6 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004527/0.0004528, allocations: 12 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09676/0.09724, allocations: 50.38 MB / 443.2 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.00193/0.09922, allocations: 1.34 MB / 444.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.1004, allocations: 0.5191 MB / 445 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.1006, allocations: 0 / 445 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.662e-05/0.1006, allocations: 7.938 kB / 445 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.1009, allocations: 15.92 kB / 445 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000478/0.1013, allocations: 47.84 kB / 445.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001593/0.1015, allocations: 59.83 kB / 445.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.1017, allocations: 20.22 kB / 445.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.1018, allocations: 35.8 kB / 445.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.58e-05/0.1019, allocations: 27.84 kB / 445.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.93e-05/0.102, allocations: 0 / 445.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.735e-05/0.102, allocations: 4 kB / 445.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.199e-05/0.1021, allocations: 15.92 kB / 445.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.197e-05/0.1021, allocations: 57.45 kB / 445.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001448/0.1023, allocations: 71.92 kB / 445.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1023, allocations: 0 / 445.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1023, allocations: 0 / 445.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.1023, allocations: 0 / 445.4 MB, free: 13.08 MB / 298.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.0006551/0.103, allocations: 375.2 kB / 445.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.1031, allocations: 8.031 kB / 445.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.405e-05/0.1031, allocations: 38.75 kB / 445.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.08e-05/0.1032, allocations: 20.75 kB / 445.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.1034, allocations: 211.9 kB / 446 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-06/0.1034, allocations: 4.375 kB / 446 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.1034, allocations: 8.375 kB / 446 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.1038, allocations: 146.5 kB / 446.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1038, allocations: 3.938 kB / 446.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.1038, allocations: 4 kB / 446.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.1038, allocations: 0 / 446.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.1039, allocations: 39.91 kB / 446.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004777/0.1044, allocations: 305.7 kB / 446.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.1047, allocations: 158.2 kB / 446.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.515e-05/0.1048, allocations: 41.8 kB / 446.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.1048, allocations: 4 kB / 446.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001576/0.105, allocations: 63.39 kB / 446.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.214e-06/0.105, allocations: 0 / 446.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003033/0.1053, allocations: 129.4 kB / 446.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.1053, allocations: 93.09 kB / 447 MB, free: 11.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.564e-05/0.1055, allocations: 141.6 kB / 447.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.1055, allocations: 29.7 kB / 447.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/0.1055, allocations: 96.12 kB / 447.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.1056, allocations: 11.81 kB / 447.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.1056, allocations: 4 kB / 447.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.551e-05/0.1056, allocations: 330.8 kB / 447.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.761e-05/0.1057, allocations: 19.98 kB / 447.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.413e-05/0.1058, allocations: 61.14 kB / 447.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.1059, allocations: 89.08 kB / 447.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1059, allocations: 0 / 447.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001893/0.1061, allocations: 117.4 kB / 447.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1061, allocations: 8 kB / 447.9 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1062, allocations: 0 / 447.9 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.1062, allocations: 4 kB / 447.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.206e-05/0.1063, allocations: 19.92 kB / 447.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.1063, allocations: 4 kB / 447.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.472e-05/0.1063, allocations: 7.938 kB / 447.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1064, allocations: 4.156 kB / 447.9 MB, free: 10.22 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.337e-05/0.1065, allocations: 145.6 kB / 448.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.854e-05/0.1065, allocations: 49.61 kB / 448.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.501e-05/0.1066, allocations: 16.3 kB / 448.1 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.1066, allocations: 0 / 448.1 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1066, allocations: 320 / 448.1 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1066, allocations: 0 / 448.1 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002975/0.1069, allocations: 362.6 kB / 448.5 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1069, allocations: 0 / 448.5 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.679e-05/0.107, allocations: 15.92 kB / 448.5 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.107, allocations: 3.984 kB / 448.5 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.107, allocations: 4 kB / 448.5 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.107, allocations: 3.938 kB / 448.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.107, allocations: 0 / 448.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001852/0.1072, allocations: 208.2 kB / 448.7 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.742e-05/0.1073, allocations: 97 kB / 448.8 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.1073, allocations: 0 / 448.8 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.908e-05/0.1074, allocations: 7.938 kB / 448.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.79e-05/0.1074, allocations: 7.984 kB / 448.8 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-06/0.1074, allocations: 0 / 448.8 MB, free: 9.207 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.19e-05/0.1075, allocations: 115.2 kB / 448.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1075, allocations: 4 kB / 448.9 MB, free: 9.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002534/0.1077, allocations: 12 kB / 448.9 MB, free: 9.078 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004441/0.1082, allocations: 0.7639 MB / 449.7 MB, free: 8.285 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001657/0.1084, allocations: 63.91 kB / 449.8 MB, free: 8.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1084, allocations: 4 kB / 449.8 MB, free: 8.219 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.583e-05/0.1085, allocations: 19.98 kB / 449.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.1088, allocations: 35.89 kB / 449.8 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.1102, allocations: 1.576 MB / 451.4 MB, free: 6.473 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001775/0.1104, allocations: 0.7082 MB / 452.1 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.839e-05/0.1105, allocations: 8.656 kB / 452.1 MB, free: 5.727 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.136e-05/0.1105, allocations: 19.44 kB / 452.1 MB, free: 5.711 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.1105, allocations: 0 / 452.1 MB, free: 5.711 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0133/0.1238, allocations: 1.761 MB / 453.9 MB, free: 3.945 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002272/0.1241, allocations: 251 kB / 454.1 MB, free: 3.68 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/1.795, allocations: 0 / 454.1 MB, free: 3.68 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