Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",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.002285/0.002285, allocations: 182.9 kB / 7.841 MB, free: 2.461 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.001262/0.001262, allocations: 95.23 kB / 261.5 MB, free: 13.6 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.1005/0.1005, allocations: 12.59 MB / 322 MB, free: 0.957 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2422/0.3427, allocations: 56.49 MB / 378.5 MB, free: 75.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.4493, allocations: 50.37 MB / 428.9 MB, free: 25.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3414/0.7908, allocations: 76.78 MB / 0.4938 GB, free: 11.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003896/0.7913, allocations: 74.72 kB / 0.4939 GB, free: 11.97 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.005066/0.7964, allocations: 1.007 MB / 0.4948 GB, free: 11.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.7964, allocations: 11.53 kB / 0.4949 GB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.059e-05/0.7965, allocations: 9.062 kB / 0.4949 GB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.7968, allocations: 189.8 kB / 0.4951 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.7968, allocations: 3.938 kB / 0.4951 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.7969, allocations: 0 / 0.4951 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.506e-05/0.797, allocations: 11.53 kB / 0.4951 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.7972, allocations: 92.05 kB / 0.4952 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.7973, allocations: 3.844 kB / 0.4952 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.7973, allocations: 0 / 0.4952 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.7973, allocations: 7.938 kB / 0.4952 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003986/0.7977, allocations: 231.4 kB / 0.4954 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.029e-05/0.7978, allocations: 40.56 kB / 0.4954 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.148e-05/0.7979, allocations: 13.72 kB / 0.4954 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.7979, allocations: 3.875 kB / 0.4954 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.798, allocations: 35.83 kB / 0.4955 GB, free: 10.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.944e-06/0.798, allocations: 0 / 0.4955 GB, free: 10.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0005112/0.7985, allocations: 42.61 kB / 0.4955 GB, free: 10.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.7986, allocations: 80.95 kB / 0.4956 GB, free: 10.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002849/0.7989, allocations: 124.7 kB / 0.4957 GB, free: 10.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.799, allocations: 25.7 kB / 0.4957 GB, free: 10.69 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.327e-05/0.7991, allocations: 83.77 kB / 0.4958 GB, free: 10.61 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.7991, allocations: 5.109 kB / 0.4958 GB, free: 10.61 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-06/0.7992, allocations: 0 / 0.4958 GB, free: 10.61 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.318e-05/0.7993, allocations: 312 kB / 0.4961 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.998e-05/0.7994, allocations: 3.625 kB / 0.4961 GB, free: 10.29 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.842e-05/0.7995, allocations: 17.56 kB / 0.4961 GB, free: 10.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.153e-05/0.7995, allocations: 4.859 kB / 0.4961 GB, free: 10.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.7996, allocations: 0 / 0.4961 GB, free: 10.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001274/0.7997, allocations: 45.78 kB / 0.4962 GB, free: 10.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.7998, allocations: 4.812 kB / 0.4962 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.7998, allocations: 3.844 kB / 0.4962 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.7998, allocations: 0 / 0.4962 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.982e-05/0.7998, allocations: 0 / 0.4962 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.7999, allocations: 0.8438 kB / 0.4962 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.8, allocations: 7.969 kB / 0.4962 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.8001, allocations: 0.8438 kB / 0.4962 GB, free: 10.23 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: 2 (sample.u,sample.y) * 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 0.0001063/0.8002, allocations: 101 kB / 0.4963 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003202/0.8006, allocations: 42.34 kB / 0.4963 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.781e-05/0.8007, allocations: 13.45 kB / 0.4964 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.8007, allocations: 7.844 kB / 0.4964 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.8008, allocations: 0 / 0.4964 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.8008, allocations: 0 / 0.4964 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002571/0.8011, allocations: 142.9 kB / 0.4965 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.8011, allocations: 0 / 0.4965 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.131e-05/0.8011, allocations: 1.219 kB / 0.4965 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.8011, allocations: 3.844 kB / 0.4965 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.8011, allocations: 0 / 0.4965 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.8011, allocations: 0 / 0.4965 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.8012, allocations: 0.9844 kB / 0.4965 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001443/0.8013, allocations: 163.2 kB / 0.4967 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001435/0.8015, allocations: 0.5269 MB / 0.4972 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/0.8015, allocations: 92.97 kB / 0.4973 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.8016, allocations: 4.062 kB / 0.4973 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.8017, allocations: 1.359 kB / 0.4973 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.554e-05/0.8017, allocations: 7.406 kB / 0.4973 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.8017, allocations: 0.5625 kB / 0.4973 GB, free: 9.113 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.656e-05/0.8018, allocations: 94.78 kB / 0.4974 GB, free: 9.039 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001085/0.8029, allocations: 3.844 kB / 0.4974 GB, free: 9.039 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: 2 (sample.u,sample.y) * 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 9.614e-05/0.803, allocations: 98.31 kB / 0.4975 GB, free: 8.949 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.073e-05/0.8031, allocations: 17.22 kB / 0.4975 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.8031, allocations: 0 / 0.4975 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.75e-05/0.8032, allocations: 3.844 kB / 0.4975 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.8035, allocations: 16.77 kB / 0.4975 GB, free: 8.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002623/0.8037, allocations: 80.67 kB / 0.4976 GB, free: 8.855 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.8039, allocations: 0.7043 MB / 0.4983 GB, free: 8.148 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.804, allocations: 3.938 kB / 0.4983 GB, free: 8.145 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1)