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.002625/0.002624, allocations: 181.5 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.2/2.2, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001116/0.001115, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.112e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09524/0.09531, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4083/0.5036, allocations: 81.98 MB / 451.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.5039, allocations: 70.03 kB / 451.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1193/0.6233, allocations: 33.43 MB / 484.7 MB, free: 11.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6233, allocations: 0 / 484.7 MB, free: 11.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.805e-05/0.6234, allocations: 12 kB / 484.7 MB, free: 11.57 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.001666/0.6251, allocations: 1.008 MB / 485.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.6251, allocations: 12.03 kB / 485.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002028/0.6254, allocations: 54.55 kB / 485.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.6256, allocations: 90.92 kB / 485.8 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.6266, allocations: 407.7 kB / 486.2 MB, free: 9.867 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.182e-05/0.6267, allocations: 23.98 kB / 486.2 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.6269, allocations: 20 kB / 486.3 MB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.6282, allocations: 494.3 kB / 486.7 MB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.6282, allocations: 0 / 486.7 MB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.718e-05/0.6283, allocations: 19.98 kB / 486.8 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.6284, allocations: 11.95 kB / 486.8 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009249/0.6293, allocations: 360 kB / 487.1 MB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.6319, allocations: 0.9339 MB / 488.1 MB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.6331, allocations: 0.495 MB / 488.6 MB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.6342, allocations: 492.9 kB / 489 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.6342, allocations: 0 / 489 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001387/0.6356, allocations: 0.6267 MB / 489.7 MB, free: 6.309 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 3.917e-06/0.6357, allocations: 4 kB / 489.7 MB, free: 6.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.002819/0.6385, allocations: 1.141 MB / 490.8 MB, free: 5.113 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002839/0.6388, allocations: 287.3 kB / 491.1 MB, free: 4.777 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002649/0.6415, allocations: 1.011 MB / 492.1 MB, free: 3.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002081/0.6418, allocations: 45.69 kB / 492.1 MB, free: 3.707 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.6419, allocations: 192.4 kB / 492.3 MB, free: 3.516 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.6421, allocations: 67.25 kB / 492.4 MB, free: 3.449 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.6e-05/0.6422, allocations: 12.11 kB / 492.4 MB, free: 3.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.6424, allocations: 334.7 kB / 492.7 MB, free: 3.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009024/0.6433, allocations: 343.8 kB / 493.1 MB, free: 2.766 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008493/0.6442, allocations: 355.7 kB / 493.4 MB, free: 2.418 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008815/0.6451, allocations: 487.7 kB / 493.9 MB, free: 1.898 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.6451, allocations: 0 / 493.9 MB, free: 1.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00256/0.6477, allocations: 1.087 MB / 495 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002784/0.648, allocations: 239.9 kB / 495.2 MB, free: 496 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.6481, allocations: 0 / 495.2 MB, free: 496 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.6481, allocations: 4 kB / 495.2 MB, free: 492 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.417e-05/0.6481, allocations: 0 / 495.2 MB, free: 492 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.026e-06/0.6482, allocations: 0 / 495.2 MB, free: 492 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/0.6488, allocations: 47.91 kB / 495.3 MB, free: 444 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002434/0.6491, allocations: 123.9 kB / 495.4 MB, free: 320 kB / 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: 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.0006022/0.6497, allocations: 411 kB / 495.8 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/0.65, allocations: 94.91 kB / 495.9 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005277/0.6505, allocations: 147.7 kB / 496 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.6505, allocations: 3.984 kB / 496 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.6505, allocations: 4 kB / 496 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.6506, allocations: 0 / 496 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004472/0.655, allocations: 1.934 MB / 498 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.6551, allocations: 4 kB / 498 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.752e-05/0.6551, allocations: 3.984 kB / 498 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-06/0.6552, allocations: 3.938 kB / 498 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.6553, allocations: 31.98 kB / 498 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.6553, allocations: 0 / 498 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6553, allocations: 4 kB / 498 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003078/0.6584, allocations: 1.369 MB / 499.4 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/0.6602, allocations: 0.5542 MB / 499.9 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.6605, allocations: 59.97 kB / 0.4883 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006135/0.6611, allocations: 31.97 kB / 0.4883 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006863/0.6618, allocations: 231.7 kB / 0.4885 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002543/0.6621, allocations: 131.9 kB / 0.4887 GB, free: 11.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002232/0.6643, allocations: 0.8539 MB / 0.4895 GB, free: 10.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.6644, allocations: 0 / 0.4895 GB, free: 10.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008371/0.6652, allocations: 124 kB / 0.4896 GB, free: 10.11 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,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.003733/0.669, allocations: 1.989 MB / 0.4916 GB, free: 8.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002924/0.672, allocations: 1.519 MB / 0.493 GB, free: 6.434 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.672, allocations: 4 kB / 0.493 GB, free: 6.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001877/0.6739, allocations: 1.136 MB / 0.4942 GB, free: 5.207 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.6759, allocations: 256.3 kB / 0.4944 GB, free: 4.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00561/0.6816, allocations: 1.946 MB / 0.4963 GB, free: 2.965 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.6829, allocations: 1.039 MB / 0.4973 GB, free: 1.895 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.6831, allocations: 71.42 kB / 0.4974 GB, free: 1.824 MB / 378.7 MB Notification: Performance of SimCode: time 1.333e-06/0.6831, allocations: 0 / 0.4974 GB, free: 1.824 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.903/3.586, allocations: 8.94 MB / 0.5061 GB, free: 8.738 MB / 394.7 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