Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.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.WorkInProgress.Tests.TestClockedRealToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger",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.002103/0.002101, 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.132/2.132, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001171/0.00117, allocations: 94.02 kB / 261.8 MB, free: 13.44 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.1295/0.1295, allocations: 12.6 MB / 322.3 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/2.981e-05, allocations: 0 / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1296, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4272/0.5569, allocations: 77.7 MB / 0.4952 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.5571, allocations: 61.17 kB / 0.4953 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004805/0.562, allocations: 1.265 MB / 0.4965 GB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.562, allocations: 0 / 0.4965 GB, free: 11.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.562, allocations: 0 / 0.4965 GB, free: 11.34 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004117/0.5625, allocations: 357.6 kB / 0.4969 GB, free: 10.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.5625, allocations: 7.719 kB / 0.4969 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.68e-05/0.5626, allocations: 14.31 kB / 0.4969 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.5628, allocations: 183.1 kB / 0.4971 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.5628, allocations: 7.922 kB / 0.4971 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.5628, allocations: 3.812 kB / 0.4971 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001347/0.563, allocations: 23.48 kB / 0.4971 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002584/0.5632, allocations: 116 kB / 0.4972 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.5633, allocations: 2.078 kB / 0.4972 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.5633, allocations: 7.781 kB / 0.4972 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.5633, allocations: 0 / 0.4972 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004824/0.5638, allocations: 272.4 kB / 0.4975 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.564, allocations: 150.3 kB / 0.4976 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.071e-05/0.5641, allocations: 27.39 kB / 0.4976 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.5642, allocations: 0 / 0.4976 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001077/0.5643, allocations: 58.3 kB / 0.4977 GB, free: 10.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.495e-06/0.5643, allocations: 3.984 kB / 0.4977 GB, free: 10.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002253/0.5645, allocations: 82.47 kB / 0.4978 GB, free: 10.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.5646, allocations: 84.38 kB / 0.4979 GB, free: 10.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.197e-05/0.5647, allocations: 102.5 kB / 0.4979 GB, free: 10.01 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.5647, allocations: 25.7 kB / 0.498 GB, free: 9.977 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.082e-05/0.5648, allocations: 93.8 kB / 0.4981 GB, free: 9.891 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.5648, allocations: 14.72 kB / 0.4981 GB, free: 9.883 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.5648, allocations: 3.938 kB / 0.4981 GB, free: 9.879 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.5649, allocations: 317.4 kB / 0.4984 GB, free: 9.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.543e-05/0.5649, allocations: 23.22 kB / 0.4984 GB, free: 9.555 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.388e-05/0.565, allocations: 57 kB / 0.4985 GB, free: 9.508 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.213e-05/0.5651, allocations: 21.2 kB / 0.4985 GB, free: 9.504 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.5651, allocations: 0 / 0.4985 GB, free: 9.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001912/0.5653, allocations: 99.86 kB / 0.4986 GB, free: 9.457 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.5653, allocations: 7.562 kB / 0.4986 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.5653, allocations: 0 / 0.4986 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.5654, allocations: 3.844 kB / 0.4986 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.5655, allocations: 13.73 kB / 0.4986 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.5655, allocations: 3.844 kB / 0.4986 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.5657, allocations: 7.719 kB / 0.4986 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.5657, allocations: 10.98 kB / 0.4986 GB, free: 9.449 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,ClockedRealToTrigger.y2,$CLKPRE.ClockedRealToTrigger.y2,$whenCondition1,ClockedRealToTrigger.y,$PRE.ClockedRealToTrigger.y3,ClockedRealToTrigger.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.954e-05/0.5658, allocations: 114.8 kB / 0.4987 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001616/0.566, allocations: 83.17 kB / 0.4988 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.845e-05/0.566, allocations: 7.719 kB / 0.4988 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.461e-05/0.566, allocations: 8.031 kB / 0.4988 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.5661, allocations: 6.125 kB / 0.4988 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.5661, allocations: 0 / 0.4988 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.5661, allocations: 0 / 0.4988 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.5664, allocations: 298 kB / 0.4991 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.5664, allocations: 0 / 0.4991 GB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.5665, allocations: 13.84 kB / 0.4991 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.5666, allocations: 3.625 kB / 0.4991 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.5666, allocations: 0 / 0.4991 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.5666, allocations: 0 / 0.4991 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5666, allocations: 0 / 0.4991 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.5668, allocations: 204.4 kB / 0.4993 GB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/0.5668, allocations: 81.02 kB / 0.4994 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.5669, allocations: 3.844 kB / 0.4994 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.567, allocations: 6.672 kB / 0.4994 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.5671, allocations: 2.484 kB / 0.4994 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.5671, allocations: 7.812 kB / 0.4994 GB, free: 8.742 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.252e-05/0.5671, allocations: 98.17 kB / 0.4995 GB, free: 8.656 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5671, allocations: 0 / 0.4995 GB, free: 8.656 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003465/0.5675, allocations: 13.84 kB / 0.4995 GB, free: 8.652 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 (ClockedRealToTrigger.y2,ClockedRealToTrigger.y,$whenCondition1,ClockedRealToTrigger.y3,triggeredSampler.y) * Number of discrete states: 1 (ClockedRealToTrigger.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.0004924/0.568, allocations: 0.8232 MB / 0.5003 GB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001714/0.5682, allocations: 44.28 kB / 0.5004 GB, free: 7.891 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5682, allocations: 4.062 kB / 0.5004 GB, free: 7.887 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.218e-05/0.5683, allocations: 24.22 kB / 0.5004 GB, free: 7.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.5685, allocations: 11.86 kB / 0.5004 GB, free: 7.879 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005324/0.5691, allocations: 135.4 kB / 0.5005 GB, free: 7.758 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001523/0.5693, allocations: 0.6962 MB / 0.5012 GB, free: 7.059 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.653e-05/0.5693, allocations: 17.3 kB / 0.5012 GB, free: 7.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.411e-05/0.5694, allocations: 26 kB / 0.5013 GB, free: 7.039 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5694, allocations: 0 / 0.5013 GB, free: 7.039 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0607/0.6301, allocations: 1.24 MB / 0.5025 GB, free: 6.938 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002738/0.6305, allocations: 160 kB / 0.5026 GB, free: 6.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.68/3.311, allocations: 0 / 0.5026 GB, free: 6.75 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToTrigger.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe 2>&1)