Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.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.DLATREG,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREG",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.001499/0.001499, allocations: 186 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.933/1.933, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 94.05 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004118/0.0004118, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3447, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1495/0.4943, allocations: 82.03 MB / 456.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.4947, allocations: 71.95 kB / 456.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09774/0.5925, allocations: 26.66 MB / 483.4 MB, free: 4.012 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5925, allocations: 0 / 483.4 MB, free: 4.012 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.873e-05/0.5926, allocations: 12 kB / 483.4 MB, free: 4 MB / 362.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.001812/0.5944, allocations: 1.135 MB / 484.5 MB, free: 2.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.5945, allocations: 12.03 kB / 484.6 MB, free: 2.758 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001726/0.5947, allocations: 58.53 kB / 484.6 MB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.5949, allocations: 83.06 kB / 484.7 MB, free: 2.609 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008592/0.5958, allocations: 415.5 kB / 485.1 MB, free: 2.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.566e-05/0.5958, allocations: 20 kB / 485.1 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.596, allocations: 28 kB / 485.1 MB, free: 2.113 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.5974, allocations: 0.4967 MB / 485.6 MB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.5974, allocations: 3.953 kB / 485.6 MB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.041e-05/0.5975, allocations: 12 kB / 485.7 MB, free: 1.594 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-06/0.5975, allocations: 0 / 485.7 MB, free: 1.594 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.5986, allocations: 368.1 kB / 486 MB, free: 1.234 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.6009, allocations: 0.9338 MB / 486.9 MB, free: 256 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.6023, allocations: 0.4986 MB / 487.4 MB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.6023, allocations: 4.109 kB / 487.5 MB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001486/0.6038, allocations: 0.6344 MB / 488.1 MB, free: 15.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 4.79e-06/0.6039, allocations: 4 kB / 488.1 MB, free: 15.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.004119/0.608, allocations: 1.742 MB / 489.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000271/0.6083, allocations: 283.3 kB / 490.1 MB, free: 12.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/0.6108, allocations: 1.023 MB / 491.1 MB, free: 11.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001921/0.6111, allocations: 41.7 kB / 491.2 MB, free: 11.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.6113, allocations: 200.3 kB / 491.4 MB, free: 11.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.6114, allocations: 75.16 kB / 491.4 MB, free: 11.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.676e-05/0.6115, allocations: 12 kB / 491.5 MB, free: 11.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.6117, allocations: 326.8 kB / 491.8 MB, free: 11.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009614/0.6127, allocations: 343.8 kB / 492.1 MB, free: 10.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009444/0.6137, allocations: 376.6 kB / 492.5 MB, free: 10.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009914/0.6147, allocations: 496.8 kB / 493 MB, free: 9.945 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.6147, allocations: 4 kB / 493 MB, free: 9.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002662/0.6174, allocations: 1.097 MB / 494.1 MB, free: 8.797 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002761/0.6177, allocations: 247.9 kB / 494.3 MB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.6177, allocations: 3.938 kB / 494.3 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.6177, allocations: 4 kB / 494.3 MB, free: 8.504 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.714e-05/0.6178, allocations: 3.938 kB / 494.3 MB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.6178, allocations: 0 / 494.3 MB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.6184, allocations: 39.88 kB / 494.4 MB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002754/0.6187, allocations: 132 kB / 494.5 MB, free: 8.332 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dLATREG.delay.inertialDelaySensitive[2].y,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * 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.00156/0.6202, allocations: 0.7685 MB / 495.3 MB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002358/0.6205, allocations: 87.06 kB / 495.3 MB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004371/0.6209, allocations: 147.5 kB / 495.5 MB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.6209, allocations: 4 kB / 495.5 MB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.621, allocations: 0 / 495.5 MB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.621, allocations: 0 / 495.5 MB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004404/0.6254, allocations: 1.95 MB / 497.4 MB, free: 5.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.6254, allocations: 0 / 497.4 MB, free: 5.227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.768e-05/0.6255, allocations: 7.984 kB / 497.4 MB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.6255, allocations: 3.938 kB / 497.4 MB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.6256, allocations: 31.98 kB / 497.5 MB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.6256, allocations: 0 / 497.5 MB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.6256, allocations: 4 kB / 497.5 MB, free: 5.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003226/0.6289, allocations: 1.385 MB / 498.9 MB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001601/0.6305, allocations: 0.5543 MB / 499.4 MB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.6308, allocations: 51.97 kB / 499.5 MB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005304/0.6314, allocations: 39.88 kB / 499.5 MB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006673/0.6321, allocations: 239.7 kB / 499.7 MB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002376/0.6323, allocations: 131.9 kB / 499.9 MB, free: 2.707 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002157/0.6345, allocations: 0.8577 MB / 0.489 GB, free: 1.852 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.126e-06/0.6345, allocations: 0 / 0.489 GB, free: 1.852 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007988/0.6353, allocations: 127.9 kB / 0.4891 GB, free: 1.727 MB / 378.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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * 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.268/0.9033, allocations: 1.999 MB / 0.4911 GB, free: 107.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003553/0.907, allocations: 1.531 MB / 0.4926 GB, free: 107.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.907, allocations: 0.5 kB / 0.4926 GB, free: 107.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.9088, allocations: 1.154 MB / 0.4937 GB, free: 106.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/0.9107, allocations: 254.7 kB / 0.4939 GB, free: 106.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/0.9227, allocations: 4.889 MB / 0.4987 GB, free: 105.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009835/0.9237, allocations: 1.03 MB / 0.4997 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.9239, allocations: 74.06 kB / 0.4998 GB, free: 104.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.9239, allocations: 0 / 0.4998 GB, free: 104.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.801/3.725, allocations: 8.861 MB / 0.5084 GB, free: 102.9 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat