Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00217/0.00217, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.323/2.323, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 91.45 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.643e-05/2.653e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3475, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.4861, allocations: 81.6 MB / 444 MB, free: 4.602 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.4864, allocations: 75.95 kB / 444.1 MB, free: 4.527 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1078/0.5943, allocations: 30.62 MB / 474.7 MB, free: 6.039 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5943, allocations: 0 / 474.7 MB, free: 6.039 MB / 363.1 MB Notification: Performance of Transformations before backend: time 5e-05/0.5944, allocations: 12 kB / 474.7 MB, free: 6.027 MB / 363.1 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.002426/0.5968, allocations: 1.333 MB / 476.1 MB, free: 4.598 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/0.5969, allocations: 8.031 kB / 476.1 MB, free: 4.59 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003831/0.5973, allocations: 138.4 kB / 476.2 MB, free: 4.453 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.5986, allocations: 0.5133 MB / 476.7 MB, free: 3.891 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.029e-05/0.5987, allocations: 19.98 kB / 476.7 MB, free: 3.871 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.5988, allocations: 27.94 kB / 476.8 MB, free: 3.844 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001133/0.6, allocations: 454.7 kB / 477.2 MB, free: 3.402 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002437/0.6024, allocations: 0.5754 MB / 477.8 MB, free: 2.82 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.6025, allocations: 0 / 477.8 MB, free: 2.82 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/0.6027, allocations: 19.98 kB / 477.8 MB, free: 2.801 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.6028, allocations: 7.891 kB / 477.8 MB, free: 2.793 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004786/0.6076, allocations: 1.125 MB / 478.9 MB, free: 1.625 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002327/0.61, allocations: 0.678 MB / 479.6 MB, free: 0.9375 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002442/0.6125, allocations: 0.6647 MB / 480.3 MB, free: 276 kB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.6126, allocations: 0 / 480.3 MB, free: 276 kB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003008/0.6156, allocations: 0.7374 MB / 481 MB, free: 15.49 MB / 379.1 MB Notification: Performance of pre-optimization done (n=33): time 8.136e-06/0.6157, allocations: 4 kB / 481 MB, free: 15.49 MB / 379.1 MB Notification: Performance of matching and sorting (n=33): time 0.004398/0.6202, allocations: 1.096 MB / 482.1 MB, free: 14.39 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003398/0.6206, allocations: 325 kB / 482.4 MB, free: 14.01 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004/0.6246, allocations: 1.558 MB / 484 MB, free: 12.44 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002499/0.6249, allocations: 37.7 kB / 484 MB, free: 12.39 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003399/0.6252, allocations: 256.9 kB / 484.3 MB, free: 12.14 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.6255, allocations: 75.22 kB / 484.4 MB, free: 12.07 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.189e-05/0.6256, allocations: 8 kB / 484.4 MB, free: 12.06 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.6257, allocations: 326.8 kB / 484.7 MB, free: 11.73 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.6268, allocations: 439.8 kB / 485.1 MB, free: 11.3 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009776/0.6278, allocations: 443.7 kB / 485.5 MB, free: 10.87 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006718/0.6285, allocations: 288.4 kB / 485.8 MB, free: 10.59 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.6285, allocations: 3.953 kB / 485.8 MB, free: 10.58 MB / 379.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00251/0.631, allocations: 0.9943 MB / 486.8 MB, free: 9.586 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003387/0.6314, allocations: 293.5 kB / 487.1 MB, free: 9.25 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.6314, allocations: 0 / 487.1 MB, free: 9.25 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.6314, allocations: 0 / 487.1 MB, free: 9.25 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.578e-05/0.6315, allocations: 3.984 kB / 487.1 MB, free: 9.246 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.6315, allocations: 0 / 487.1 MB, free: 9.246 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007409/0.6323, allocations: 59.81 kB / 487.2 MB, free: 9.188 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002562/0.6325, allocations: 124.2 kB / 487.3 MB, free: 9.066 MB / 379.1 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.0006498/0.6332, allocations: 455.7 kB / 487.7 MB, free: 8.562 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002939/0.6362, allocations: 1.175 MB / 488.9 MB, free: 7.379 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002917/0.6365, allocations: 134.4 kB / 489 MB, free: 7.246 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008273/0.6374, allocations: 248.3 kB / 489.3 MB, free: 7.004 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.6374, allocations: 4 kB / 489.3 MB, free: 7 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.6374, allocations: 4 kB / 489.3 MB, free: 6.996 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.6374, allocations: 7.875 kB / 489.3 MB, free: 6.988 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004998/0.6424, allocations: 2.002 MB / 491.3 MB, free: 4.938 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.6425, allocations: 4 kB / 491.3 MB, free: 4.934 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.983e-05/0.6425, allocations: 0 / 491.3 MB, free: 4.934 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.6425, allocations: 4 kB / 491.3 MB, free: 4.93 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.6427, allocations: 31.98 kB / 491.3 MB, free: 4.898 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.002e-06/0.6427, allocations: 8 kB / 491.4 MB, free: 4.891 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.6427, allocations: 0 / 491.4 MB, free: 4.891 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003027/0.6457, allocations: 1.288 MB / 492.6 MB, free: 3.582 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/0.6479, allocations: 0.6785 MB / 493.3 MB, free: 2.883 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000322/0.6482, allocations: 55.95 kB / 493.4 MB, free: 2.828 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/0.6489, allocations: 43.88 kB / 493.4 MB, free: 2.785 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001052/0.65, allocations: 379.6 kB / 493.8 MB, free: 2.414 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002626/0.6502, allocations: 131.9 kB / 493.9 MB, free: 2.285 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.00331/0.6536, allocations: 1.271 MB / 495.2 MB, free: 1.012 MB / 379.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6536, allocations: 0 / 495.2 MB, free: 1.012 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001005/0.6546, allocations: 144 kB / 495.3 MB, free: 0.8711 MB / 379.1 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.003712/0.6584, allocations: 1.921 MB / 497.2 MB, free: 14.93 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003454/0.6619, allocations: 1.885 MB / 499.1 MB, free: 12.94 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.6619, allocations: 0 / 499.1 MB, free: 12.94 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002292/0.6642, allocations: 1.413 MB / 0.4888 GB, free: 11.43 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0022/0.6665, allocations: 286.9 kB / 0.4891 GB, free: 11.15 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008211/0.6747, allocations: 2.825 MB / 0.4918 GB, free: 8.266 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001749/0.6766, allocations: 1.215 MB / 0.493 GB, free: 7.023 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/0.6769, allocations: 140.5 kB / 0.4932 GB, free: 6.887 MB / 395.1 MB Notification: Performance of SimCode: time 1.673e-06/0.6769, allocations: 4 kB / 0.4932 GB, free: 6.883 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.067/3.744, allocations: 13.77 MB / 0.5066 GB, free: 117.7 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat