Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",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.00107/0.00107, allocations: 198.6 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 225.5 MB / 234.4 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008638/0.0008637, allocations: 91.02 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1683/0.1683, allocations: 45.13 MB / 383.3 MB, free: 484 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2111/0.3795, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.4761, allocations: 63.24 MB / 0.5039 GB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3001/0.7762, allocations: 91.26 MB / 0.593 GB, free: 11.51 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.7765, allocations: 69.28 kB / 0.5931 GB, free: 11.48 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.01968/0.7962, allocations: 7.157 MB / 0.6 GB, free: 5.445 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.7962, allocations: 8 kB / 0.6 GB, free: 5.438 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.77e-05/0.7963, allocations: 31.62 kB / 0.6001 GB, free: 5.406 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/0.7968, allocations: 289.2 kB / 0.6004 GB, free: 5.109 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-05/0.7969, allocations: 89.11 kB / 0.6004 GB, free: 5.004 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.098e-05/0.7969, allocations: 12 kB / 0.6005 GB, free: 4.992 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001648/0.7971, allocations: 67.16 kB / 0.6005 GB, free: 4.941 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.7973, allocations: 142.5 kB / 0.6007 GB, free: 4.809 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.7973, allocations: 0 / 0.6007 GB, free: 4.809 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.7973, allocations: 4 kB / 0.6007 GB, free: 4.805 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.7974, allocations: 4 kB / 0.6007 GB, free: 4.801 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006772/0.798, allocations: 0.5862 MB / 0.6012 GB, free: 4.234 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.7983, allocations: 155 kB / 0.6014 GB, free: 4.094 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.7984, allocations: 85.66 kB / 0.6015 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.7984, allocations: 0 / 0.6015 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.7987, allocations: 423 kB / 0.6019 GB, free: 3.578 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.7987, allocations: 0 / 0.6019 GB, free: 3.578 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003766/0.7991, allocations: 189.5 kB / 0.602 GB, free: 3.426 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.7992, allocations: 221.5 kB / 0.6023 GB, free: 3.164 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.7995, allocations: 288.7 kB / 0.6025 GB, free: 2.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.7996, allocations: 29.7 kB / 0.6026 GB, free: 2.895 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.681e-05/0.7996, allocations: 110.2 kB / 0.6027 GB, free: 2.793 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.789e-05/0.7997, allocations: 46.34 kB / 0.6027 GB, free: 2.754 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-06/0.7997, allocations: 3.938 kB / 0.6027 GB, free: 2.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.7999, allocations: 337.1 kB / 0.603 GB, free: 2.422 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-05/0.7999, allocations: 44.19 kB / 0.6031 GB, free: 2.398 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.8001, allocations: 134.8 kB / 0.6032 GB, free: 2.254 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.8002, allocations: 61.02 kB / 0.6033 GB, free: 2.211 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.8002, allocations: 0 / 0.6033 GB, free: 2.211 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003465/0.8006, allocations: 203.9 kB / 0.6035 GB, free: 2.043 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.8006, allocations: 8 kB / 0.6035 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.8006, allocations: 0 / 0.6035 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.8006, allocations: 4 kB / 0.6035 GB, free: 2.031 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.8007, allocations: 23.92 kB / 0.6035 GB, free: 2.008 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.8008, allocations: 4 kB / 0.6035 GB, free: 2.004 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.8009, allocations: 28.05 kB / 0.6035 GB, free: 1.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.801, allocations: 11.75 kB / 0.6035 GB, free: 1.969 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0001866/0.8012, allocations: 219.6 kB / 0.6037 GB, free: 1.738 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.912e-05/0.8012, allocations: 31.62 kB / 0.6038 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.8015, allocations: 144.7 kB / 0.6039 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.8015, allocations: 4 kB / 0.6039 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.8015, allocations: 96 / 0.6039 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.8015, allocations: 3.938 kB / 0.6039 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.8018, allocations: 274.2 kB / 0.6042 GB, free: 1.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.8018, allocations: 0 / 0.6042 GB, free: 1.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.935e-05/0.8019, allocations: 8 kB / 0.6042 GB, free: 1.312 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.8019, allocations: 0 / 0.6042 GB, free: 1.312 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.8019, allocations: 11.98 kB / 0.6042 GB, free: 1.301 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.8019, allocations: 4 kB / 0.6042 GB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.8019, allocations: 8 kB / 0.6042 GB, free: 1.289 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004145/0.8024, allocations: 284.2 kB / 0.6045 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005252/0.8029, allocations: 0.6499 MB / 0.6051 GB, free: 400 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.518e-05/0.803, allocations: 112.1 kB / 0.6052 GB, free: 276 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.53e-05/0.8031, allocations: 11.91 kB / 0.6052 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.8033, allocations: 23.98 kB / 0.6053 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.8033, allocations: 26.91 kB / 0.6053 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.613e-05/0.8034, allocations: 8 kB / 0.6053 GB, free: 212 kB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002155/0.8036, allocations: 229.7 kB / 0.6055 GB, free: 36 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009196/0.8045, allocations: 74.8 kB / 0.6056 GB, free: 15.96 MB / 410.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: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0007916/0.8053, allocations: 327.2 kB / 0.6059 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003714/0.8057, allocations: 246 kB / 0.6061 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8057, allocations: 0 / 0.6061 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.806, allocations: 260 kB / 0.6064 GB, free: 15.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.8063, allocations: 47.5 kB / 0.6064 GB, free: 15.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007424/0.807, allocations: 352.9 kB / 0.6068 GB, free: 14.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003814/0.8074, allocations: 0.7857 MB / 0.6075 GB, free: 14.14 MB / 410.7 MB Notification: Performance of SimCode: time 3.21e-07/0.8074, allocations: 0 / 0.6075 GB, free: 14.14 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat