Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_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 trunk/package.mo): time 0.001589/0.001589, allocations: 198.8 kB / 8.538 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009034/0.0009038, allocations: 91.69 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1227/0.1236, allocations: 56.9 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.2308, allocations: 51.49 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2853/0.5162, allocations: 81.49 MB / 476.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.5164, allocations: 78.47 kB / 476.3 MB, free: 10.77 MB / 346.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.01921/0.5356, allocations: 7.395 MB / 483.7 MB, free: 5.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.5357, allocations: 12 kB / 483.7 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.529e-05/0.5358, allocations: 25.03 kB / 483.7 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004203/0.5362, allocations: 272.6 kB / 484 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.5363, allocations: 4 kB / 484 MB, free: 5.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.5363, allocations: 4 kB / 484 MB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000111/0.5364, allocations: 31.69 kB / 484 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.5367, allocations: 137.8 kB / 484.2 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.5367, allocations: 0.75 kB / 484.2 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.5367, allocations: 4 kB / 484.2 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5367, allocations: 0 / 484.2 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.5372, allocations: 342.9 kB / 484.5 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.5373, allocations: 107.1 kB / 484.6 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.363e-05/0.5374, allocations: 34.2 kB / 484.6 MB, free: 4.453 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.5374, allocations: 8 kB / 484.6 MB, free: 4.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.864e-05/0.5375, allocations: 70.83 kB / 484.7 MB, free: 4.375 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.5376, allocations: 3.094 kB / 484.7 MB, free: 4.375 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002303/0.5378, allocations: 96.59 kB / 484.8 MB, free: 4.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.5378, allocations: 136.5 kB / 484.9 MB, free: 4.125 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.5381, allocations: 242.1 kB / 485.2 MB, free: 3.922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.5381, allocations: 29.7 kB / 485.2 MB, free: 3.887 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.5381, allocations: 95.91 kB / 485.3 MB, free: 3.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.5382, allocations: 15.75 kB / 485.3 MB, free: 3.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-06/0.5382, allocations: 0 / 485.3 MB, free: 3.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.633e-05/0.5382, allocations: 330.6 kB / 485.6 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.599e-05/0.5383, allocations: 19.5 kB / 485.7 MB, free: 3.445 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.233e-05/0.5383, allocations: 69.56 kB / 485.7 MB, free: 3.367 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.513e-05/0.5384, allocations: 25.3 kB / 485.7 MB, free: 3.352 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.5384, allocations: 0 / 485.7 MB, free: 3.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001495/0.5385, allocations: 104.9 kB / 485.8 MB, free: 3.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.5386, allocations: 7.938 kB / 485.9 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.5386, allocations: 4 kB / 485.9 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.5386, allocations: 3.906 kB / 485.9 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.509e-05/0.5387, allocations: 15.98 kB / 485.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.5387, allocations: 0 / 485.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.845e-05/0.5388, allocations: 7.938 kB / 485.9 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.908e-06/0.5388, allocations: 4 kB / 485.9 MB, free: 3.215 MB / 346.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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.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 6.834e-05/0.5389, allocations: 114.9 kB / 486 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.373e-05/0.539, allocations: 65.09 kB / 486.1 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/0.5391, allocations: 101.9 kB / 486.2 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.5392, allocations: 4 kB / 486.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5392, allocations: 0 / 486.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.5392, allocations: 0 / 486.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.5393, allocations: 213.6 kB / 486.4 MB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.5393, allocations: 0 / 486.4 MB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.72e-05/0.5394, allocations: 4 kB / 486.4 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.5394, allocations: 8.062 kB / 486.4 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.5394, allocations: 3.5 kB / 486.4 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.5394, allocations: 3.984 kB / 486.4 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.5394, allocations: 5.125 kB / 486.4 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001673/0.5396, allocations: 169.7 kB / 486.6 MB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002198/0.5398, allocations: 0.538 MB / 487.1 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.546e-05/0.5399, allocations: 112.1 kB / 487.2 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.75e-05/0.54, allocations: 7.906 kB / 487.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.36e-05/0.54, allocations: 4 kB / 487.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.228e-05/0.5401, allocations: 15.84 kB / 487.2 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.689e-06/0.5401, allocations: 4 kB / 487.2 MB, free: 1.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000161/0.5403, allocations: 189.9 kB / 487.4 MB, free: 1.676 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008734/0.5412, allocations: 42.42 kB / 487.5 MB, free: 1.637 MB / 346.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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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.0006456/0.5418, allocations: 312.8 kB / 487.8 MB, free: 1.441 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001525/0.542, allocations: 69.55 kB / 487.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.542, allocations: 0 / 487.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.799e-05/0.542, allocations: 27.31 kB / 487.9 MB, free: 1.371 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.5424, allocations: 51.42 kB / 487.9 MB, free: 1.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004762/0.5429, allocations: 235.8 kB / 488.2 MB, free: 1.109 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.5431, allocations: 0.7542 MB / 488.9 MB, free: 340 kB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5431, allocations: 0 / 488.9 MB, free: 340 kB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat does not exist to compare? outputFormat=mat