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.002131/0.002131, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.202/2.202, allocations: 205.3 MB / 213.8 MB, free: 13.76 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.001075/0.001075, allocations: 96.05 kB / 261.8 MB, free: 13.43 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.1141/0.1141, allocations: 12.59 MB / 322.3 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.181e-05/2.191e-05, allocations: 0 / 379 MB, free: 75.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 50.37 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4511/0.5542, allocations: 78.08 MB / 0.4956 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/0.5545, allocations: 77.84 kB / 0.4957 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006332/0.5609, allocations: 1.617 MB / 0.4972 GB, free: 11.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5609, allocations: 0 / 0.4972 GB, free: 11.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.561, allocations: 7.812 kB / 0.4973 GB, free: 11.26 MB / 330.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.0004375/0.5614, allocations: 364.3 kB / 0.4976 GB, free: 10.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.5615, allocations: 11.72 kB / 0.4976 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.5615, allocations: 11.59 kB / 0.4976 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.5618, allocations: 205 kB / 0.4978 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.5618, allocations: 0 / 0.4978 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.5618, allocations: 5.906 kB / 0.4978 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001347/0.562, allocations: 30.72 kB / 0.4979 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.5623, allocations: 126.3 kB / 0.498 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.5623, allocations: 0 / 0.498 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.5623, allocations: 0 / 0.498 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.5623, allocations: 0 / 0.498 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005329/0.5629, allocations: 287.2 kB / 0.4982 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/0.5631, allocations: 141.9 kB / 0.4984 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.382e-05/0.5632, allocations: 38.83 kB / 0.4984 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.5632, allocations: 0 / 0.4984 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/0.5633, allocations: 63.25 kB / 0.4985 GB, free: 10.13 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.104e-06/0.5634, allocations: 0 / 0.4985 GB, free: 10.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.00024/0.5636, allocations: 80.14 kB / 0.4986 GB, free: 10.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.5637, allocations: 80.67 kB / 0.4986 GB, free: 10 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.5638, allocations: 127.8 kB / 0.4988 GB, free: 9.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.5638, allocations: 25.7 kB / 0.4988 GB, free: 9.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.049e-05/0.5639, allocations: 97.97 kB / 0.4989 GB, free: 9.785 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.5639, allocations: 7.781 kB / 0.4989 GB, free: 9.781 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-06/0.5639, allocations: 3.938 kB / 0.4989 GB, free: 9.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.979e-05/0.564, allocations: 325.6 kB / 0.4992 GB, free: 9.461 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.515e-05/0.5641, allocations: 15.09 kB / 0.4992 GB, free: 9.461 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.412e-05/0.5641, allocations: 52.81 kB / 0.4993 GB, free: 9.414 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.701e-05/0.5643, allocations: 21 kB / 0.4993 GB, free: 9.41 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.5643, allocations: 3.906 kB / 0.4993 GB, free: 9.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001866/0.5645, allocations: 90.41 kB / 0.4994 GB, free: 9.367 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.5645, allocations: 7.5 kB / 0.4994 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.5645, allocations: 3.938 kB / 0.4994 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.5645, allocations: 3.844 kB / 0.4994 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.5647, allocations: 17.17 kB / 0.4994 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.5647, allocations: 6.344 kB / 0.4994 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.954e-05/0.5648, allocations: 7.078 kB / 0.4994 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.5648, allocations: 3.844 kB / 0.4994 GB, free: 9.355 MB / 330.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,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * 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 7.166e-05/0.5649, allocations: 114.1 kB / 0.4995 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001533/0.5651, allocations: 83.86 kB / 0.4996 GB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.087e-05/0.5651, allocations: 11.53 kB / 0.4996 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.532e-05/0.5652, allocations: 15.09 kB / 0.4996 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.5652, allocations: 0 / 0.4996 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.5652, allocations: 0 / 0.4996 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.5652, allocations: 7.953 kB / 0.4996 GB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.5655, allocations: 304.7 kB / 0.4999 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5656, allocations: 0 / 0.4999 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.15e-05/0.5657, allocations: 10.95 kB / 0.4999 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.5657, allocations: 3.906 kB / 0.4999 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.5657, allocations: 7.938 kB / 0.5 GB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5657, allocations: 0 / 0.5 GB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5657, allocations: 3.953 kB / 0.5 GB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001829/0.5659, allocations: 197.8 kB / 0.5001 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.861e-05/0.566, allocations: 98.34 kB / 0.5002 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.566, allocations: 3.906 kB / 0.5002 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.5662, allocations: 7.797 kB / 0.5002 GB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.5662, allocations: 5.812 kB / 0.5003 GB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.5662, allocations: 3.781 kB / 0.5003 GB, free: 8.645 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.108e-05/0.5663, allocations: 108.2 kB / 0.5004 GB, free: 8.566 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5663, allocations: 0 / 0.5004 GB, free: 8.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003413/0.5667, allocations: 15.53 kB / 0.5004 GB, free: 8.562 MB / 330.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,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * 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.0004865/0.5672, allocations: 0.8303 MB / 0.5012 GB, free: 7.789 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.5674, allocations: 48.12 kB / 0.5012 GB, free: 7.785 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5674, allocations: 0 / 0.5012 GB, free: 7.785 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.791e-05/0.5674, allocations: 14.97 kB / 0.5012 GB, free: 7.785 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.5678, allocations: 18.17 kB / 0.5013 GB, free: 7.785 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005939/0.5684, allocations: 166.2 kB / 0.5014 GB, free: 7.645 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.5686, allocations: 0.712 MB / 0.5021 GB, free: 6.941 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.689e-05/0.5687, allocations: 7.906 kB / 0.5021 GB, free: 6.941 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.411e-05/0.5687, allocations: 25.41 kB / 0.5021 GB, free: 6.934 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.5687, allocations: 192 / 0.5021 GB, free: 6.934 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03639/0.6051, allocations: 1.402 MB / 0.5035 GB, free: 6.824 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003269/0.6056, allocations: 178.4 kB / 0.5037 GB, free: 6.633 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.575/3.181, allocations: 0 / 0.5037 GB, free: 6.633 MB / 330.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