Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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.002529/0.002529, allocations: 186.4 kB / 7.839 MB, free: 2.469 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.936/1.936, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001679/0.001678, allocations: 96.06 kB / 261.5 MB, free: 13.64 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.09991/0.09991, allocations: 12.59 MB / 322 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2521/0.3521, allocations: 56.49 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.4505, allocations: 50.38 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3593/0.8099, allocations: 81.02 MB / 0.4979 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000483/0.8105, allocations: 83.05 kB / 0.498 GB, free: 11.93 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.04206/0.8526, allocations: 6.365 MB / 0.5042 GB, free: 10.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.8526, allocations: 15.41 kB / 0.5042 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.8528, allocations: 19.34 kB / 0.5043 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005957/0.8534, allocations: 263 kB / 0.5045 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.8534, allocations: 7.719 kB / 0.5045 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.52e-05/0.8535, allocations: 4.875 kB / 0.5045 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001616/0.8536, allocations: 32.83 kB / 0.5046 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.854, allocations: 137.5 kB / 0.5047 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.854, allocations: 0 / 0.5047 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.854, allocations: 3.984 kB / 0.5047 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.854, allocations: 3.844 kB / 0.5047 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006285/0.8547, allocations: 342.6 kB / 0.505 GB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.8549, allocations: 96.52 kB / 0.5051 GB, free: 9.887 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.5e-05/0.855, allocations: 45.39 kB / 0.5052 GB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.855, allocations: 7.875 kB / 0.5052 GB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001187/0.8552, allocations: 63.7 kB / 0.5052 GB, free: 9.801 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.906e-06/0.8552, allocations: 3.938 kB / 0.5052 GB, free: 9.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003104/0.8555, allocations: 100.9 kB / 0.5053 GB, free: 9.746 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.8556, allocations: 144.3 kB / 0.5055 GB, free: 9.578 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00035/0.8559, allocations: 226.4 kB / 0.5057 GB, free: 9.465 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.856, allocations: 29.48 kB / 0.5057 GB, free: 9.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.591e-05/0.856, allocations: 95.75 kB / 0.5058 GB, free: 9.344 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.164e-05/0.8561, allocations: 15.56 kB / 0.5058 GB, free: 9.336 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.908e-05/0.8562, allocations: 0 / 0.5058 GB, free: 9.336 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.8563, allocations: 334 kB / 0.5061 GB, free: 9.012 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.386e-05/0.8564, allocations: 22.75 kB / 0.5062 GB, free: 9.008 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.8566, allocations: 64.55 kB / 0.5062 GB, free: 8.949 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.8567, allocations: 22.92 kB / 0.5062 GB, free: 8.945 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.8567, allocations: 0 / 0.5062 GB, free: 8.945 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002921/0.857, allocations: 117.4 kB / 0.5063 GB, free: 8.883 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.8571, allocations: 3.844 kB / 0.5064 GB, free: 8.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.8571, allocations: 0 / 0.5064 GB, free: 8.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.702e-05/0.8571, allocations: 3.875 kB / 0.5064 GB, free: 8.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.8573, allocations: 11.64 kB / 0.5064 GB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.8574, allocations: 3.844 kB / 0.5064 GB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.8576, allocations: 7.75 kB / 0.5064 GB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.8577, allocations: 3.844 kB / 0.5064 GB, free: 8.875 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001287/0.8578, allocations: 114.5 kB / 0.5065 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.8579, allocations: 63.94 kB / 0.5066 GB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.8582, allocations: 99.48 kB / 0.5066 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.8582, allocations: 0 / 0.5066 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.8582, allocations: 0 / 0.5066 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.8583, allocations: 7.797 kB / 0.5067 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.8585, allocations: 198.7 kB / 0.5068 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.8585, allocations: 0 / 0.5068 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.766e-05/0.8586, allocations: 11.52 kB / 0.5069 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.8586, allocations: 7.969 kB / 0.5069 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.8586, allocations: 3.688 kB / 0.5069 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.8586, allocations: 0 / 0.5069 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.8587, allocations: 0 / 0.5069 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003359/0.859, allocations: 169.8 kB / 0.507 GB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004774/0.8595, allocations: 0.5386 MB / 0.5076 GB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.8597, allocations: 119.5 kB / 0.5077 GB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.41e-05/0.8597, allocations: 11.86 kB / 0.5077 GB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.8599, allocations: 3.906 kB / 0.5077 GB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.316e-05/0.8599, allocations: 3.812 kB / 0.5077 GB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.86, allocations: 15.92 kB / 0.5077 GB, free: 7.688 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002528/0.8602, allocations: 184.2 kB / 0.5079 GB, free: 7.594 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001273/0.8615, allocations: 31.09 kB / 0.5079 GB, free: 7.59 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008828/0.8624, allocations: 333 kB / 0.5082 GB, free: 7.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002765/0.8627, allocations: 57.42 kB / 0.5083 GB, free: 7.332 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.8627, allocations: 3.875 kB / 0.5083 GB, free: 7.332 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.871e-05/0.8628, allocations: 26.67 kB / 0.5083 GB, free: 7.328 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005558/0.8634, allocations: 54.53 kB / 0.5084 GB, free: 7.312 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000662/0.8641, allocations: 223.2 kB / 0.5086 GB, free: 7.176 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.8644, allocations: 0.7522 MB / 0.5093 GB, free: 6.445 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8644, allocations: 0 / 0.5093 GB, free: 6.445 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1)