Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",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.002281/0.002281, allocations: 178 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.082/2.082, 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.001189/0.001188, allocations: 88.3 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.773e-05/3.784e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4118/0.4119, allocations: 47.57 MB / 362.4 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.5482, allocations: 81.32 MB / 443.7 MB, free: 4.973 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/0.5486, allocations: 75.95 kB / 443.8 MB, free: 4.898 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1194/0.668, allocations: 33.21 MB / 477 MB, free: 3.801 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.668, allocations: 0 / 477 MB, free: 3.801 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.54e-05/0.6681, allocations: 8 kB / 477 MB, free: 3.793 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001773/0.6698, allocations: 1.014 MB / 478 MB, free: 2.691 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.6699, allocations: 8.031 kB / 478.1 MB, free: 2.684 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003232/0.6703, allocations: 90.92 kB / 478.1 MB, free: 2.594 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.6713, allocations: 415.6 kB / 478.5 MB, free: 2.148 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.101e-05/0.6714, allocations: 12 kB / 478.6 MB, free: 2.137 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.6715, allocations: 20 kB / 478.6 MB, free: 2.117 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008789/0.6724, allocations: 344.2 kB / 478.9 MB, free: 1.777 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.6737, allocations: 478.3 kB / 479.4 MB, free: 1.305 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.6737, allocations: 0 / 479.4 MB, free: 1.305 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.16e-05/0.6738, allocations: 8 kB / 479.4 MB, free: 1.297 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.6738, allocations: 3.953 kB / 479.4 MB, free: 1.293 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.6763, allocations: 0.9028 MB / 480.3 MB, free: 360 kB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.6775, allocations: 494.6 kB / 480.8 MB, free: 15.86 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.6786, allocations: 480.9 kB / 481.3 MB, free: 15.38 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.6787, allocations: 0 / 481.3 MB, free: 15.38 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001292/0.68, allocations: 0.6227 MB / 481.9 MB, free: 14.72 MB / 379.1 MB Notification: Performance of pre-optimization done (n=32): time 3.487e-06/0.6801, allocations: 4 kB / 481.9 MB, free: 14.72 MB / 379.1 MB Notification: Performance of matching and sorting (n=32): time 0.002436/0.6825, allocations: 0.8674 MB / 482.7 MB, free: 13.84 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000267/0.6828, allocations: 283.3 kB / 483 MB, free: 13.51 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002388/0.6852, allocations: 0.98 MB / 484 MB, free: 12.52 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000212/0.6855, allocations: 45.69 kB / 484 MB, free: 12.47 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/0.6857, allocations: 196.3 kB / 484.2 MB, free: 12.28 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.6859, allocations: 67.27 kB / 484.3 MB, free: 12.21 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.211e-05/0.686, allocations: 11.98 kB / 484.3 MB, free: 12.2 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.6862, allocations: 322.8 kB / 484.6 MB, free: 11.88 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008038/0.687, allocations: 328 kB / 485 MB, free: 11.56 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007725/0.6878, allocations: 338.1 kB / 485.3 MB, free: 11.23 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005501/0.6884, allocations: 243.8 kB / 485.5 MB, free: 10.99 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.6884, allocations: 4 kB / 485.5 MB, free: 10.99 MB / 379.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002136/0.6905, allocations: 0.8133 MB / 486.3 MB, free: 10.17 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003019/0.6909, allocations: 247.8 kB / 486.6 MB, free: 9.883 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.6909, allocations: 0 / 486.6 MB, free: 9.883 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.691, allocations: 3.938 kB / 486.6 MB, free: 9.879 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.287e-05/0.691, allocations: 0 / 486.6 MB, free: 9.879 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.691, allocations: 4 kB / 486.6 MB, free: 9.875 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006183/0.6916, allocations: 35.97 kB / 486.6 MB, free: 9.84 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00024/0.6919, allocations: 127.9 kB / 486.7 MB, free: 9.715 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete 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.0005877/0.6925, allocations: 410 kB / 487.1 MB, free: 9.262 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002511/0.695, allocations: 0.9649 MB / 488.1 MB, free: 8.289 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/0.6953, allocations: 87.06 kB / 488.2 MB, free: 8.203 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000513/0.6958, allocations: 148 kB / 488.3 MB, free: 8.055 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.6959, allocations: 4 kB / 488.3 MB, free: 8.051 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.6959, allocations: 0 / 488.3 MB, free: 8.051 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.6959, allocations: 0 / 488.3 MB, free: 8.051 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003931/0.6998, allocations: 1.603 MB / 489.9 MB, free: 6.402 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.6999, allocations: 4 kB / 490 MB, free: 6.398 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.983e-05/0.6999, allocations: 0 / 490 MB, free: 6.398 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.7, allocations: 0 / 490 MB, free: 6.398 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.7001, allocations: 31.98 kB / 490 MB, free: 6.367 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.7001, allocations: 0 / 490 MB, free: 6.367 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.7001, allocations: 0 / 490 MB, free: 6.367 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/0.7028, allocations: 1.061 MB / 491 MB, free: 5.289 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/0.7046, allocations: 0.562 MB / 491.6 MB, free: 4.707 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002859/0.7049, allocations: 51.97 kB / 491.7 MB, free: 4.656 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005782/0.7055, allocations: 43.81 kB / 491.7 MB, free: 4.613 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007177/0.7062, allocations: 231.7 kB / 491.9 MB, free: 4.387 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002688/0.7065, allocations: 131.9 kB / 492.1 MB, free: 4.258 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.002063/0.7086, allocations: 0.8109 MB / 492.9 MB, free: 3.453 MB / 379.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.7086, allocations: 0 / 492.9 MB, free: 3.453 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0009164/0.7096, allocations: 120 kB / 493 MB, free: 3.336 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * 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.00325/0.7128, allocations: 1.695 MB / 494.7 MB, free: 1.617 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002836/0.7157, allocations: 1.48 MB / 496.2 MB, free: 52 kB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/0.7158, allocations: 4 kB / 496.2 MB, free: 48 kB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0019/0.7177, allocations: 1.121 MB / 497.3 MB, free: 14.84 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/0.7198, allocations: 261.3 kB / 497.5 MB, free: 14.58 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005679/0.7255, allocations: 1.925 MB / 499.5 MB, free: 12.61 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.7268, allocations: 1.035 MB / 0.4888 GB, free: 11.54 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.727, allocations: 71.41 kB / 0.4888 GB, free: 11.47 MB / 395.1 MB Notification: Performance of SimCode: time 1.834e-06/0.7271, allocations: 0 / 0.4888 GB, free: 11.47 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.853/3.58, allocations: 8.9 MB / 0.4975 GB, free: 2.438 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DLATREGL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat