Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.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.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH",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.0009567/0.0009567, allocations: 168.9 kB / 8.469 MB, free: 1.855 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.104/1.104, allocations: 205.2 MB / 214.1 MB, free: 1.789 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.0008067/0.0008063, allocations: 87.38 kB / 262.1 MB, free: 1.742 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1389/0.1397, allocations: 52.96 MB / 315.1 MB, free: 22.92 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07157/0.2113, allocations: 47.57 MB / 362.6 MB, free: 7.289 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2128/0.4242, allocations: 81.82 MB / 444.4 MB, free: 13.58 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.4244, allocations: 66.78 kB / 444.5 MB, free: 13.55 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.05677/0.4812, allocations: 31.37 MB / 475.9 MB, free: 3.652 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.4812, allocations: 8 kB / 475.9 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.4814, allocations: 138.3 kB / 476 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007357/0.4822, allocations: 0.5235 MB / 476.5 MB, free: 2.973 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.277e-05/0.4822, allocations: 19.98 kB / 476.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.57e-05/0.4823, allocations: 31.72 kB / 476.6 MB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000608/0.4829, allocations: 465.7 kB / 477.1 MB, free: 2.605 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007763/0.4837, allocations: 0.597 MB / 477.7 MB, free: 2.148 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.4837, allocations: 0 / 477.7 MB, free: 2.148 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-05/0.4838, allocations: 15.8 kB / 477.7 MB, free: 2.137 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.4838, allocations: 4 kB / 477.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.4857, allocations: 1.169 MB / 478.8 MB, free: 1.168 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007493/0.4865, allocations: 0.6893 MB / 479.5 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007105/0.4872, allocations: 0.6835 MB / 480.2 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.4872, allocations: 3.938 kB / 480.2 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008187/0.488, allocations: 0.7095 MB / 480.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.954e-06/0.488, allocations: 0 / 480.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001326/0.4894, allocations: 0.9441 MB / 481.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002014/0.4896, allocations: 329 kB / 482.2 MB, free: 14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002117/0.4917, allocations: 1.578 MB / 483.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.094e-05/0.4918, allocations: 45.7 kB / 483.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.4919, allocations: 158.4 kB / 484 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.911e-05/0.492, allocations: 75.22 kB / 484 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.4921, allocations: 12 kB / 484.1 MB, free: 12.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4923, allocations: 382.6 kB / 484.4 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005637/0.4928, allocations: 451.8 kB / 484.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005687/0.4934, allocations: 463.5 kB / 485.3 MB, free: 10.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.4938, allocations: 296.6 kB / 485.6 MB, free: 10.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4938, allocations: 4 kB / 485.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001198/0.495, allocations: 0.9061 MB / 486.5 MB, free: 9.629 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.495, allocations: 8 kB / 486.5 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.495, allocations: 0 / 486.5 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.4951, allocations: 0 / 486.5 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.982e-05/0.4951, allocations: 0 / 486.5 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.566e-06/0.4951, allocations: 0 / 486.5 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000335/0.4954, allocations: 39.88 kB / 486.6 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.4956, allocations: 124.2 kB / 486.7 MB, free: 9.461 MB / 362.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.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.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.000389/0.496, allocations: 448.5 kB / 487.1 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.4961, allocations: 134.4 kB / 487.3 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003933/0.4965, allocations: 247.9 kB / 487.5 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.4966, allocations: 8 kB / 487.5 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4966, allocations: 0 / 487.5 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4966, allocations: 0 / 487.5 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.4989, allocations: 1.873 MB / 489.4 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4989, allocations: 7.875 kB / 489.4 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.139e-05/0.4989, allocations: 7.922 kB / 489.4 MB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.499, allocations: 4 kB / 489.4 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.391e-05/0.499, allocations: 31.98 kB / 489.4 MB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.499, allocations: 0 / 489.4 MB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.499, allocations: 0 / 489.4 MB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001403/0.5005, allocations: 1.144 MB / 490.6 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001482/0.5019, allocations: 1.527 MB / 492.1 MB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.503, allocations: 0.694 MB / 492.8 MB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002072/0.5032, allocations: 63.91 kB / 492.9 MB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003506/0.5036, allocations: 43.88 kB / 492.9 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005902/0.5042, allocations: 383.6 kB / 493.3 MB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.5043, allocations: 136 kB / 493.4 MB, free: 2.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001646/0.506, allocations: 1.279 MB / 494.7 MB, free: 1.281 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001001/0.507, allocations: 132 kB / 494.8 MB, free: 1.152 MB / 362.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,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.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.0002603/0.5073, allocations: 185.7 kB / 495 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.5089, allocations: 1.442 MB / 496.4 MB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5089, allocations: 0 / 496.4 MB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.51, allocations: 1.216 MB / 497.7 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.5111, allocations: 281.9 kB / 497.9 MB, free: 13.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003609/0.5147, allocations: 2.52 MB / 0.4887 GB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/0.5158, allocations: 1.238 MB / 0.4899 GB, free: 10.11 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5158, allocations: 0 / 0.4899 GB, free: 10.11 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1)