Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000975/0.000975, allocations: 178.8 kB / 8.522 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.138/1.138, allocations: 221.4 MB / 230.3 MB, free: 7.719 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009259/0.0009261, allocations: 88.67 kB / 281.2 MB, free: 5.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1574/0.1574, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1824/0.3398, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.4389, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.261/0.7, allocations: 89.79 MB / 0.5819 GB, free: 6.938 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.7002, allocations: 68.62 kB / 0.5819 GB, free: 6.871 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.01666/0.7169, allocations: 6.362 MB / 0.5881 GB, free: 460 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.7169, allocations: 11.94 kB / 0.5881 GB, free: 448 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.668e-05/0.717, allocations: 27.72 kB / 0.5882 GB, free: 420 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.7175, allocations: 285.6 kB / 0.5884 GB, free: 92 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.7176, allocations: 89.09 kB / 0.5885 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.7176, allocations: 16.84 kB / 0.5885 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001705/0.7178, allocations: 72.06 kB / 0.5886 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.718, allocations: 137.6 kB / 0.5887 GB, free: 15.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.718, allocations: 0 / 0.5887 GB, free: 15.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.7181, allocations: 7.938 kB / 0.5888 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.7181, allocations: 0 / 0.5888 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006977/0.7188, allocations: 0.5835 MB / 0.5893 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.719, allocations: 153.2 kB / 0.5895 GB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.7191, allocations: 74.58 kB / 0.5895 GB, free: 14.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.7192, allocations: 15.86 kB / 0.5896 GB, free: 14.83 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000339/0.7195, allocations: 406.1 kB / 0.5899 GB, free: 14.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.7195, allocations: 0 / 0.5899 GB, free: 14.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003555/0.7199, allocations: 197.3 kB / 0.5901 GB, free: 14.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.596e-05/0.72, allocations: 213.6 kB / 0.5903 GB, free: 13.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.7203, allocations: 280.2 kB / 0.5906 GB, free: 13.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.7203, allocations: 33.69 kB / 0.5906 GB, free: 13.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.666e-05/0.7204, allocations: 108.5 kB / 0.5907 GB, free: 13.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.548e-05/0.7204, allocations: 51.34 kB / 0.5908 GB, free: 13.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.749e-06/0.7204, allocations: 4 kB / 0.5908 GB, free: 13.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.7206, allocations: 334.8 kB / 0.5911 GB, free: 13.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.715e-05/0.7206, allocations: 44.19 kB / 0.5912 GB, free: 13.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.7208, allocations: 142.5 kB / 0.5913 GB, free: 12.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.838e-05/0.7209, allocations: 47.97 kB / 0.5913 GB, free: 12.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7209, allocations: 0 / 0.5913 GB, free: 12.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002989/0.7212, allocations: 203.3 kB / 0.5915 GB, free: 12.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/0.7212, allocations: 4 kB / 0.5915 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.7212, allocations: 4 kB / 0.5915 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.7212, allocations: 3.906 kB / 0.5915 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.7214, allocations: 27.86 kB / 0.5916 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.7214, allocations: 4 kB / 0.5916 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.7215, allocations: 24.2 kB / 0.5916 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.7215, allocations: 12 kB / 0.5916 GB, free: 12.54 MB / 410.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.0001473/0.7217, allocations: 224.5 kB / 0.5918 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.014e-05/0.7218, allocations: 35.7 kB / 0.5919 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002258/0.722, allocations: 123.6 kB / 0.592 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.722, allocations: 11.94 kB / 0.592 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.722, allocations: 3.984 kB / 0.592 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.722, allocations: 0 / 0.592 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.7223, allocations: 273.9 kB / 0.5922 GB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.7223, allocations: 0 / 0.5922 GB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.697e-05/0.7223, allocations: 8 kB / 0.5923 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.7223, allocations: 4 kB / 0.5923 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.7223, allocations: 8 kB / 0.5923 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.7224, allocations: 0 / 0.5923 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.7224, allocations: 7.984 kB / 0.5923 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003623/0.7227, allocations: 290.4 kB / 0.5926 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004472/0.7232, allocations: 0.6529 MB / 0.5932 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-05/0.7233, allocations: 116.8 kB / 0.5933 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.113e-05/0.7233, allocations: 8 kB / 0.5933 GB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.7235, allocations: 23.98 kB / 0.5933 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.525e-05/0.7236, allocations: 15.98 kB / 0.5933 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.7236, allocations: 23.92 kB / 0.5934 GB, free: 10.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001888/0.7238, allocations: 220.4 kB / 0.5936 GB, free: 10.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008485/0.7246, allocations: 67.98 kB / 0.5936 GB, free: 10.29 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.0005942/0.7252, allocations: 332.9 kB / 0.594 GB, free: 10.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000337/0.7256, allocations: 248.9 kB / 0.5942 GB, free: 9.773 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.7256, allocations: 4 kB / 0.5942 GB, free: 9.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.7258, allocations: 245 kB / 0.5944 GB, free: 9.512 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.7261, allocations: 36.41 kB / 0.5945 GB, free: 9.477 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006525/0.7268, allocations: 366.5 kB / 0.5948 GB, free: 9.082 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003045/0.7271, allocations: 0.7786 MB / 0.5956 GB, free: 8.273 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.7271, allocations: 0 / 0.5956 GB, free: 8.273 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1)