Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRH",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.0009515/0.0009515, allocations: 179.7 kB / 8.474 MB, free: 1.879 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.047/1.047, 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.000808/0.000808, allocations: 97.97 kB / 262.1 MB, free: 5.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1487/0.1496, allocations: 52.96 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05983/0.2094, allocations: 47.57 MB / 362.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2025/0.412, allocations: 81.63 MB / 444.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001658/0.4122, allocations: 65.66 kB / 444.3 MB, free: 10.7 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.04873/0.4609, allocations: 31.82 MB / 476.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.461, allocations: 12 kB / 476.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.4612, allocations: 130.4 kB / 476.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007251/0.4619, allocations: 0.5184 MB / 476.8 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.4619, allocations: 15.98 kB / 476.8 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.85e-05/0.462, allocations: 34.8 kB / 476.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005715/0.4626, allocations: 458.2 kB / 477.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000771/0.4634, allocations: 0.6044 MB / 477.9 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.4634, allocations: 0 / 477.9 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/0.4635, allocations: 15.67 kB / 477.9 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.4635, allocations: 0 / 477.9 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.4651, allocations: 1.073 MB / 479 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006703/0.4657, allocations: 0.6888 MB / 479.7 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006168/0.4664, allocations: 0.6718 MB / 480.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.4664, allocations: 4 kB / 480.4 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000741/0.4671, allocations: 0.7191 MB / 481.1 MB, free: 10.28 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 1.673e-06/0.4671, allocations: 0 / 481.1 MB, free: 10.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001245/0.4684, allocations: 0.9713 MB / 482 MB, free: 9.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/0.4686, allocations: 323.1 kB / 482.4 MB, free: 9.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/0.4706, allocations: 1.547 MB / 483.9 MB, free: 7.879 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.825e-05/0.4707, allocations: 45.12 kB / 484 MB, free: 7.832 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.4708, allocations: 160 kB / 484.1 MB, free: 7.688 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.4709, allocations: 80.03 kB / 484.2 MB, free: 7.621 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.471, allocations: 8 kB / 484.2 MB, free: 7.613 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.4711, allocations: 391.1 kB / 484.6 MB, free: 7.246 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.4717, allocations: 451.5 kB / 485 MB, free: 6.938 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005054/0.4722, allocations: 445.8 kB / 485.5 MB, free: 6.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003453/0.4726, allocations: 308.2 kB / 485.8 MB, free: 6.43 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4726, allocations: 0 / 485.8 MB, free: 6.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001203/0.4738, allocations: 0.914 MB / 486.7 MB, free: 5.727 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.4738, allocations: 6.031 kB / 486.7 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.4738, allocations: 0 / 486.7 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.4738, allocations: 0 / 486.7 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.596e-05/0.4739, allocations: 4.5 kB / 486.7 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.4739, allocations: 7.938 kB / 486.7 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.4742, allocations: 46.27 kB / 486.7 MB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000165/0.4744, allocations: 154.9 kB / 486.9 MB, free: 5.52 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.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.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.0003764/0.4748, allocations: 453.9 kB / 487.3 MB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.4749, allocations: 134.4 kB / 487.5 MB, free: 4.914 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004099/0.4753, allocations: 255.5 kB / 487.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.4753, allocations: 0 / 487.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4754, allocations: 0 / 487.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.4754, allocations: 0 / 487.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.4776, allocations: 1.87 MB / 489.6 MB, free: 2.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.4776, allocations: 4 kB / 489.6 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.698e-06/0.4776, allocations: 0 / 489.6 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4776, allocations: 3.984 kB / 489.6 MB, free: 2.969 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.114e-05/0.4777, allocations: 39.98 kB / 489.6 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4777, allocations: 0 / 489.6 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4777, allocations: 4 kB / 489.6 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001325/0.4791, allocations: 1.132 MB / 490.8 MB, free: 1.773 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001417/0.4805, allocations: 1.527 MB / 492.3 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.4815, allocations: 0.6864 MB / 493 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002118/0.4818, allocations: 67.95 kB / 493 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.4821, allocations: 43.81 kB / 493.1 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005369/0.4826, allocations: 363.7 kB / 493.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000178/0.4828, allocations: 171.7 kB / 493.6 MB, free: 14.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001658/0.4845, allocations: 1.266 MB / 494.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001027/0.4855, allocations: 132 kB / 495 MB, free: 13.49 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,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.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.0002425/0.4858, allocations: 181.7 kB / 495.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.4874, allocations: 1.452 MB / 496.6 MB, free: 11.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4874, allocations: 4 kB / 496.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.4885, allocations: 1.181 MB / 497.8 MB, free: 10.56 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.4896, allocations: 312.1 kB / 498.1 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.4932, allocations: 2.472 MB / 0.4889 GB, free: 7.754 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/0.4943, allocations: 1.247 MB / 0.4901 GB, free: 6.477 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4943, allocations: 0 / 0.4901 GB, free: 6.477 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRH_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRH.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1)