Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001754/0.001754, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 225.5 MB / 234.4 MB, free: 3.496 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009225/0.0009224, allocations: 92.78 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1184/0.1194, allocations: 56.9 MB / 343.2 MB, free: 8.715 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.2216, allocations: 51.48 MB / 394.7 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2761/0.4977, allocations: 81.51 MB / 476.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.4981, allocations: 80.25 kB / 476.3 MB, free: 10.88 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.02797/0.5261, allocations: 7.571 MB / 483.9 MB, free: 5.348 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.5261, allocations: 12 kB / 483.9 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.5262, allocations: 21.09 kB / 483.9 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006245/0.5269, allocations: 303.1 kB / 484.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.5269, allocations: 0 / 484.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.5269, allocations: 7.938 kB / 484.2 MB, free: 4.996 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001476/0.5271, allocations: 42.17 kB / 484.2 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.5274, allocations: 136.7 kB / 484.4 MB, free: 4.824 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.5274, allocations: 6.703 kB / 484.4 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.5275, allocations: 0 / 484.4 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.5275, allocations: 3.938 kB / 484.4 MB, free: 4.816 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.5281, allocations: 382.6 kB / 484.8 MB, free: 4.449 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.5283, allocations: 102 kB / 484.9 MB, free: 4.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.569e-05/0.5284, allocations: 52.56 kB / 484.9 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.5285, allocations: 0 / 484.9 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001231/0.5286, allocations: 73.7 kB / 485 MB, free: 4.219 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.725e-06/0.5286, allocations: 0 / 485 MB, free: 4.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003358/0.529, allocations: 110.5 kB / 485.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.529, allocations: 162.3 kB / 485.3 MB, free: 3.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004379/0.5295, allocations: 288.8 kB / 485.5 MB, free: 3.691 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.5295, allocations: 25.7 kB / 485.6 MB, free: 3.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.5296, allocations: 102.5 kB / 485.7 MB, free: 3.562 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.5296, allocations: 14.77 kB / 485.7 MB, free: 3.551 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-06/0.5296, allocations: 0 / 485.7 MB, free: 3.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.798e-05/0.5297, allocations: 340 kB / 486 MB, free: 3.219 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.197e-05/0.5298, allocations: 21.62 kB / 486 MB, free: 3.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.5299, allocations: 89.91 kB / 486.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.089e-05/0.53, allocations: 31.73 kB / 486.1 MB, free: 3.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.53, allocations: 4 kB / 486.2 MB, free: 3.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002666/0.5303, allocations: 116.4 kB / 486.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.5303, allocations: 7.906 kB / 486.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.5303, allocations: 0 / 486.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.5304, allocations: 4 kB / 486.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.5305, allocations: 15.98 kB / 486.3 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.5305, allocations: 4 kB / 486.3 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.5307, allocations: 7.938 kB / 486.3 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.5307, allocations: 15.11 kB / 486.3 MB, free: 2.93 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 7.61e-05/0.5308, allocations: 116.2 kB / 486.4 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-05/0.5309, allocations: 65.08 kB / 486.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.5312, allocations: 116.5 kB / 486.6 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.5312, allocations: 0 / 486.6 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5312, allocations: 4 kB / 486.6 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.5312, allocations: 0 / 486.6 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.5314, allocations: 226.3 kB / 486.8 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.5315, allocations: 0 / 486.8 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.5316, allocations: 15.98 kB / 486.9 MB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.5316, allocations: 2.125 kB / 486.9 MB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.5316, allocations: 4 kB / 486.9 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.5316, allocations: 0 / 486.9 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.5316, allocations: 2.734 kB / 486.9 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002701/0.5319, allocations: 181 kB / 487 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003202/0.5323, allocations: 0.5573 MB / 487.6 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.5324, allocations: 126.8 kB / 487.7 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/0.5325, allocations: 7.938 kB / 487.7 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.5326, allocations: 0 / 487.7 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/0.5327, allocations: 7.984 kB / 487.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.5327, allocations: 7.875 kB / 487.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002815/0.533, allocations: 235.9 kB / 488 MB, free: 1.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001494/0.5345, allocations: 50.06 kB / 488 MB, free: 1.25 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.001026/0.5355, allocations: 328.8 kB / 488.3 MB, free: 1.039 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002711/0.5358, allocations: 82.33 kB / 488.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5358, allocations: 0 / 488.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.999e-05/0.5359, allocations: 26.44 kB / 488.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005161/0.5365, allocations: 65.72 kB / 488.5 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000739/0.5372, allocations: 274.7 kB / 488.8 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000393/0.5376, allocations: 0.778 MB / 489.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5376, allocations: 0 / 489.6 MB, free: 15.85 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat does not exist to compare? outputFormat=mat