Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002846/0.002852, allocations: 190.4 kB / 7.848 MB, free: 2.5 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.047/2.047, allocations: 205.2 MB / 213.5 MB, free: 13.9 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.001319/0.001319, allocations: 90.03 kB / 261.5 MB, free: 13.62 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.1168/0.1168, allocations: 12.59 MB / 322 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2828/0.3996, allocations: 56.49 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.5084, allocations: 50.37 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3433/0.8518, allocations: 77.51 MB / 0.4945 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.8521, allocations: 81.91 kB / 0.4946 GB, free: 11.96 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.009253/0.8614, allocations: 1.996 MB / 0.4965 GB, free: 11.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.8615, allocations: 12.45 kB / 0.4965 GB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.8616, allocations: 15.72 kB / 0.4965 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.8618, allocations: 188.4 kB / 0.4967 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.8618, allocations: 0 / 0.4967 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.8618, allocations: 4.703 kB / 0.4967 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00011/0.862, allocations: 27.7 kB / 0.4968 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.8622, allocations: 87.11 kB / 0.4968 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.8622, allocations: 4 kB / 0.4968 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.8623, allocations: 0.5625 kB / 0.4968 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.8623, allocations: 3.688 kB / 0.4968 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000397/0.8627, allocations: 248.7 kB / 0.4971 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.802e-05/0.8628, allocations: 41.48 kB / 0.4971 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.569e-05/0.8628, allocations: 18.41 kB / 0.4971 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.8628, allocations: 0 / 0.4971 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.8629, allocations: 31.41 kB / 0.4972 GB, free: 10.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.723e-06/0.8629, allocations: 0 / 0.4972 GB, free: 10.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.000201/0.8631, allocations: 55.05 kB / 0.4972 GB, free: 10.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.8631, allocations: 82.5 kB / 0.4973 GB, free: 10.72 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.8633, allocations: 127.5 kB / 0.4974 GB, free: 10.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.8633, allocations: 25.7 kB / 0.4975 GB, free: 10.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.212e-05/0.8633, allocations: 89.19 kB / 0.4975 GB, free: 10.51 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.8634, allocations: 0.6094 kB / 0.4975 GB, free: 10.51 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.8634, allocations: 0 / 0.4975 GB, free: 10.51 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.756e-05/0.8635, allocations: 316.5 kB / 0.4978 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.842e-05/0.8635, allocations: 7.969 kB / 0.4978 GB, free: 10.19 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.512e-05/0.8635, allocations: 14.2 kB / 0.4979 GB, free: 10.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.744e-05/0.8636, allocations: 5.922 kB / 0.4979 GB, free: 10.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8636, allocations: 0 / 0.4979 GB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.637e-05/0.8637, allocations: 51.28 kB / 0.4979 GB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.8637, allocations: 3.906 kB / 0.4979 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.8637, allocations: 4.828 kB / 0.4979 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.8638, allocations: 4.125 kB / 0.4979 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.8639, allocations: 8.953 kB / 0.4979 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.8639, allocations: 0.5625 kB / 0.4979 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.539e-05/0.864, allocations: 8.453 kB / 0.4979 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.864, allocations: 4.469 kB / 0.4979 GB, free: 10.12 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.899e-05/0.8641, allocations: 101.5 kB / 0.498 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.011e-05/0.8642, allocations: 38.55 kB / 0.4981 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.8642, allocations: 16.16 kB / 0.4981 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.8643, allocations: 0.5625 kB / 0.4981 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.8643, allocations: 0 / 0.4981 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.8643, allocations: 0 / 0.4981 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.8645, allocations: 152.6 kB / 0.4982 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.8645, allocations: 4.641 kB / 0.4982 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.132e-05/0.8646, allocations: 5.25 kB / 0.4983 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.8646, allocations: 4.5 kB / 0.4983 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.8646, allocations: 0 / 0.4983 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.8646, allocations: 8.688 kB / 0.4983 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.8646, allocations: 0 / 0.4983 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001295/0.8648, allocations: 160.5 kB / 0.4984 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001877/0.865, allocations: 0.5319 MB / 0.4989 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.484e-05/0.865, allocations: 97.08 kB / 0.499 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.8651, allocations: 0 / 0.499 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.8652, allocations: 4.641 kB / 0.499 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.8653, allocations: 0.7031 kB / 0.499 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.8653, allocations: 0.6094 kB / 0.499 GB, free: 9 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.492e-05/0.8654, allocations: 110.2 kB / 0.4991 GB, free: 8.922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00113/0.8665, allocations: 8.203 kB / 0.4991 GB, free: 8.922 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001108/0.8666, allocations: 100.8 kB / 0.4992 GB, free: 8.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.8668, allocations: 8.422 kB / 0.4993 GB, free: 8.828 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.8668, allocations: 0 / 0.4993 GB, free: 8.828 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.525e-05/0.8668, allocations: 12.3 kB / 0.4993 GB, free: 8.824 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.8672, allocations: 6.172 kB / 0.4993 GB, free: 8.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000336/0.8675, allocations: 102.7 kB / 0.4994 GB, free: 8.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.8678, allocations: 0.705 MB / 0.5001 GB, free: 8.023 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8678, allocations: 0 / 0.5001 GB, free: 8.023 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1)