Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL",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.001007/0.001007, allocations: 174.9 kB / 8.473 MB, free: 1.871 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.017/1.017, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.0008702/0.0008703, allocations: 91.25 kB / 262.1 MB, free: 5.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1413/0.1422, allocations: 52.96 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06434/0.2066, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.4087, allocations: 81.42 MB / 444.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.4089, allocations: 70.5 kB / 444.1 MB, free: 10.77 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.06092/0.4699, allocations: 37.84 MB / 482 MB, free: 9.918 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.4699, allocations: 8 kB / 482 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.4701, allocations: 86.97 kB / 482.1 MB, free: 9.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000653/0.4708, allocations: 440.5 kB / 482.5 MB, free: 9.402 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.4708, allocations: 16 kB / 482.5 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.537e-05/0.4709, allocations: 23.62 kB / 482.5 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000484/0.4714, allocations: 349.9 kB / 482.9 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006858/0.4721, allocations: 0.4943 MB / 483.4 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.4721, allocations: 0 / 483.4 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.883e-05/0.4722, allocations: 15.98 kB / 483.4 MB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.4722, allocations: 3.984 kB / 483.4 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.4735, allocations: 0.8474 MB / 484.2 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005422/0.4741, allocations: 0.5023 MB / 484.7 MB, free: 7.688 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000497/0.4746, allocations: 495.4 kB / 485.2 MB, free: 7.398 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.4746, allocations: 4 kB / 485.2 MB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006936/0.4753, allocations: 0.6196 MB / 485.8 MB, free: 6.859 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 2.074e-06/0.4753, allocations: 0 / 485.8 MB, free: 6.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001109/0.4764, allocations: 0.7742 MB / 486.6 MB, free: 6.246 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/0.4766, allocations: 281 kB / 486.9 MB, free: 5.93 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.4779, allocations: 0.9961 MB / 487.9 MB, free: 5.094 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.693e-05/0.478, allocations: 45.69 kB / 487.9 MB, free: 5.043 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.333e-05/0.4781, allocations: 114 kB / 488 MB, free: 4.926 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.4782, allocations: 83.02 kB / 488.1 MB, free: 4.844 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.4783, allocations: 12 kB / 488.1 MB, free: 4.832 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4784, allocations: 346.8 kB / 488.5 MB, free: 4.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004582/0.4789, allocations: 340.2 kB / 488.8 MB, free: 4.152 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000444/0.4793, allocations: 352.5 kB / 489.1 MB, free: 3.809 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.4797, allocations: 261.2 kB / 489.4 MB, free: 3.555 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4797, allocations: 0 / 489.4 MB, free: 3.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001032/0.4807, allocations: 0.7198 MB / 490.1 MB, free: 2.828 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.4807, allocations: 13.81 kB / 490.1 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.4807, allocations: 3.984 kB / 490.1 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.4808, allocations: 4 kB / 490.1 MB, free: 2.809 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.83e-05/0.4808, allocations: 7.938 kB / 490.1 MB, free: 2.801 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4808, allocations: 3.984 kB / 490.2 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.4811, allocations: 27.89 kB / 490.2 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/0.4813, allocations: 152.1 kB / 490.3 MB, free: 2.621 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.000343/0.4817, allocations: 405.1 kB / 490.7 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.4818, allocations: 87.06 kB / 490.8 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002928/0.4821, allocations: 155.6 kB / 491 MB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.4821, allocations: 0 / 491 MB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.4821, allocations: 3.906 kB / 491 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.4821, allocations: 0 / 491 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.484, allocations: 1.489 MB / 492.5 MB, free: 416 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.484, allocations: 3.938 kB / 492.5 MB, free: 412 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.405e-05/0.4841, allocations: 7.922 kB / 492.5 MB, free: 404 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.4841, allocations: 0 / 492.5 MB, free: 404 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-05/0.4842, allocations: 39.98 kB / 492.5 MB, free: 364 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4842, allocations: 0 / 492.5 MB, free: 364 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4842, allocations: 0 / 492.5 MB, free: 364 kB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001211/0.4854, allocations: 0.9317 MB / 493.4 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001306/0.4867, allocations: 1.319 MB / 494.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008914/0.4876, allocations: 0.5855 MB / 495.3 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001927/0.4878, allocations: 59.97 kB / 495.4 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003198/0.4881, allocations: 31.97 kB / 495.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004479/0.4886, allocations: 247.7 kB / 495.7 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001703/0.4888, allocations: 155.9 kB / 495.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.00107/0.4899, allocations: 0.8304 MB / 496.7 MB, free: 12.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001024/0.4909, allocations: 104 kB / 496.8 MB, free: 12.05 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0002371/0.4911, allocations: 180.5 kB / 496.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.4924, allocations: 1.101 MB / 498 MB, free: 10.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.4924, allocations: 4 kB / 498 MB, free: 10.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009282/0.4934, allocations: 0.9255 MB / 499 MB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.4945, allocations: 273.9 kB / 499.2 MB, free: 9.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.4973, allocations: 1.726 MB / 0.4892 GB, free: 7.723 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008918/0.4982, allocations: 1.057 MB / 0.4902 GB, free: 6.633 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4983, allocations: 0 / 0.4902 GB, free: 6.633 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1)