Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.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) 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.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL",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.00102/0.00102, allocations: 183.4 kB / 8.482 MB, free: 1.789 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.051/1.051, allocations: 205.2 MB / 214.1 MB, free: 13.85 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.0008122/0.0008122, allocations: 78.88 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08707/0.08791, allocations: 52.99 MB / 315.1 MB, free: 8.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.2782, allocations: 47.55 MB / 362.6 MB, free: 45.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08389/0.3621, allocations: 81.58 MB / 444.2 MB, free: 4.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.3624, allocations: 67.95 kB / 444.3 MB, free: 4.324 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.07099/0.4334, allocations: 39.27 MB / 483.5 MB, free: 13.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.4334, allocations: 8 kB / 483.5 MB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002465/0.4337, allocations: 134.4 kB / 483.7 MB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008084/0.4345, allocations: 0.525 MB / 484.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.648e-05/0.4346, allocations: 19.98 kB / 484.2 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.66e-05/0.4347, allocations: 24 kB / 484.2 MB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006704/0.4353, allocations: 471.8 kB / 484.7 MB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008324/0.4362, allocations: 0.5945 MB / 485.3 MB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.4362, allocations: 4 kB / 485.3 MB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.958e-05/0.4363, allocations: 15.98 kB / 485.3 MB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.4363, allocations: 4 kB / 485.3 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.4382, allocations: 1.164 MB / 486.5 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007654/0.439, allocations: 0.6936 MB / 487.2 MB, free: 9.305 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006776/0.4397, allocations: 0.6803 MB / 487.9 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.4397, allocations: 4 kB / 487.9 MB, free: 8.617 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007375/0.4404, allocations: 0.7083 MB / 488.6 MB, free: 7.871 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.124e-06/0.4404, allocations: 0 / 488.6 MB, free: 7.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001296/0.4417, allocations: 0.9519 MB / 489.5 MB, free: 6.914 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001812/0.4419, allocations: 333 kB / 489.8 MB, free: 6.527 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.444, allocations: 1.574 MB / 491.4 MB, free: 4.941 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.854e-05/0.4441, allocations: 41.7 kB / 491.5 MB, free: 4.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.4442, allocations: 162.4 kB / 491.6 MB, free: 4.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.818e-05/0.4443, allocations: 71.17 kB / 491.7 MB, free: 4.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.4444, allocations: 12 kB / 491.7 MB, free: 4.648 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.4446, allocations: 386.7 kB / 492.1 MB, free: 4.262 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005564/0.4451, allocations: 447.8 kB / 492.5 MB, free: 3.824 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005531/0.4457, allocations: 451.8 kB / 493 MB, free: 3.383 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.4461, allocations: 296.4 kB / 493.2 MB, free: 3.094 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4461, allocations: 0 / 493.2 MB, free: 3.094 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001157/0.4472, allocations: 0.912 MB / 494.2 MB, free: 2.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.4473, allocations: 10.75 kB / 494.2 MB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.4473, allocations: 0 / 494.2 MB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.4473, allocations: 0 / 494.2 MB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.186e-05/0.4473, allocations: 4 kB / 494.2 MB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.4473, allocations: 0 / 494.2 MB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.4477, allocations: 39.81 kB / 494.2 MB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.4478, allocations: 132.2 kB / 494.3 MB, free: 2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.000363/0.4482, allocations: 451.7 kB / 494.8 MB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.4484, allocations: 138.4 kB / 494.9 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003692/0.4487, allocations: 247.9 kB / 495.2 MB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4487, allocations: 0 / 495.2 MB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4488, allocations: 0 / 495.2 MB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.4488, allocations: 4 kB / 495.2 MB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.451, allocations: 1.873 MB / 497 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.451, allocations: 7.984 kB / 497 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.235e-06/0.451, allocations: 0 / 497 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.451, allocations: 0 / 497 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-05/0.4511, allocations: 35.89 kB / 497.1 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4511, allocations: 4 kB / 497.1 MB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4511, allocations: 0 / 497.1 MB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001329/0.4525, allocations: 1.148 MB / 498.2 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001449/0.4539, allocations: 1.52 MB / 499.7 MB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.455, allocations: 0.6903 MB / 0.4887 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.4552, allocations: 55.97 kB / 0.4888 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003615/0.4555, allocations: 47.88 kB / 0.4888 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005517/0.4561, allocations: 391.5 kB / 0.4892 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000154/0.4563, allocations: 131.9 kB / 0.4893 GB, free: 11.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001598/0.4579, allocations: 1.279 MB / 0.4906 GB, free: 9.836 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001082/0.459, allocations: 136 kB / 0.4907 GB, free: 9.703 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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 Backend phase and start with SimCode phase: time 0.0002258/0.4592, allocations: 185.6 kB / 0.4909 GB, free: 9.512 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.4608, allocations: 1.431 MB / 0.4923 GB, free: 8.027 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.4608, allocations: 0 / 0.4923 GB, free: 8.027 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.4619, allocations: 1.228 MB / 0.4935 GB, free: 6.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.463, allocations: 282.5 kB / 0.4937 GB, free: 6.473 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003641/0.4666, allocations: 2.52 MB / 0.4962 GB, free: 3.914 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/0.4677, allocations: 1.242 MB / 0.4974 GB, free: 2.645 MB / 394.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4677, allocations: 0 / 0.4974 GB, free: 2.645 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1)