Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.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.DFFREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL",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.0009808/0.0009808, allocations: 186.7 kB / 8.485 MB, free: 1.84 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.04/1.04, allocations: 205.2 MB / 214.1 MB, free: 5.176 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008361/0.0008361, allocations: 84.73 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1443/0.1452, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05906/0.2043, allocations: 47.58 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2126/0.4169, allocations: 81.66 MB / 444.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001725/0.4171, allocations: 76.84 kB / 444.4 MB, free: 10.71 MB / 314.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.0537/0.4708, allocations: 33.34 MB / 477.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4709, allocations: 12 kB / 477.7 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002544/0.4711, allocations: 138.3 kB / 477.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008567/0.472, allocations: 0.5228 MB / 478.4 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/0.4721, allocations: 15.91 kB / 478.4 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.801e-05/0.4722, allocations: 27.44 kB / 478.4 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006443/0.4728, allocations: 458.2 kB / 478.9 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008499/0.4737, allocations: 0.6022 MB / 479.5 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.4737, allocations: 7.984 kB / 479.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.205e-05/0.4738, allocations: 12 kB / 479.5 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.4738, allocations: 0 / 479.5 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.4756, allocations: 1.08 MB / 480.6 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007465/0.4764, allocations: 0.6934 MB / 481.3 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006569/0.477, allocations: 0.6685 MB / 481.9 MB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/0.477, allocations: 4 kB / 481.9 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008037/0.4779, allocations: 0.7213 MB / 482.7 MB, free: 8.828 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.185e-06/0.4779, allocations: 0 / 482.7 MB, free: 8.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001303/0.4792, allocations: 0.9642 MB / 483.6 MB, free: 8.066 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001725/0.4794, allocations: 331.9 kB / 484 MB, free: 7.703 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002226/0.4816, allocations: 1.55 MB / 485.5 MB, free: 6.414 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.568e-05/0.4817, allocations: 45.39 kB / 485.5 MB, free: 6.367 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.4818, allocations: 153.5 kB / 485.7 MB, free: 6.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.482, allocations: 86.39 kB / 485.8 MB, free: 6.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/0.482, allocations: 8 kB / 485.8 MB, free: 6.152 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002322/0.4823, allocations: 380.7 kB / 486.2 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005912/0.4829, allocations: 454 kB / 486.6 MB, free: 5.484 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/0.4834, allocations: 451 kB / 487 MB, free: 5.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004016/0.4838, allocations: 304.4 kB / 487.3 MB, free: 4.973 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4838, allocations: 0 / 487.3 MB, free: 4.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001304/0.4852, allocations: 0.913 MB / 488.3 MB, free: 4.273 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.4852, allocations: 4 kB / 488.3 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.4852, allocations: 0 / 488.3 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4852, allocations: 0 / 488.3 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.584e-05/0.4853, allocations: 7.938 kB / 488.3 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.4853, allocations: 0 / 488.3 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000386/0.4857, allocations: 47.19 kB / 488.3 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000172/0.4858, allocations: 147.9 kB / 488.5 MB, free: 4.074 MB / 330.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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * 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.0004253/0.4863, allocations: 461.1 kB / 488.9 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.4865, allocations: 134.5 kB / 489 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005073/0.487, allocations: 253.4 kB / 489.3 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.487, allocations: 4 kB / 489.3 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.487, allocations: 0 / 489.3 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.487, allocations: 3.938 kB / 489.3 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/0.4896, allocations: 1.871 MB / 491.2 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.4896, allocations: 0 / 491.2 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.167e-05/0.4897, allocations: 0 / 491.2 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4897, allocations: 0 / 491.2 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.043e-05/0.4898, allocations: 39.98 kB / 491.2 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.267e-06/0.4898, allocations: 4 kB / 491.2 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.4898, allocations: 3.984 kB / 491.2 MB, free: 1.445 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0014/0.4912, allocations: 1.136 MB / 492.3 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001611/0.4928, allocations: 1.517 MB / 493.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.494, allocations: 0.7057 MB / 494.6 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002139/0.4942, allocations: 63.97 kB / 494.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003789/0.4946, allocations: 31.97 kB / 494.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005806/0.4952, allocations: 367.6 kB / 495 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001907/0.4954, allocations: 159.9 kB / 495.2 MB, free: 13.42 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001901/0.4973, allocations: 1.266 MB / 496.4 MB, free: 12.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001093/0.4984, allocations: 132 kB / 496.6 MB, free: 12.02 MB / 346.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * 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.0003137/0.4987, allocations: 197.6 kB / 496.8 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.5005, allocations: 1.444 MB / 498.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5005, allocations: 0 / 498.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.5016, allocations: 1.181 MB / 499.4 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.5028, allocations: 295.8 kB / 499.7 MB, free: 8.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004045/0.5068, allocations: 2.483 MB / 0.4904 GB, free: 6.289 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/0.5079, allocations: 1.247 MB / 0.4916 GB, free: 5.012 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.508, allocations: 3.938 kB / 0.4916 GB, free: 5.008 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1)