Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_3_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.001191/0.001191, allocations: 180.1 kB / 17.01 MB, free: 5.125 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.471/1.471, allocations: 205.4 MB / 223.1 MB, free: 9.043 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.0009721/0.000972, allocations: 97.09 kB / 271.5 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003281, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2629, allocations: 47.58 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.3652, allocations: 82.02 MB / 457.9 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.3655, allocations: 67.97 kB / 458 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05234/0.4179, allocations: 26.66 MB / 484.7 MB, free: 3.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.238e-06/0.4179, allocations: 0 / 484.7 MB, free: 3.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.347e-05/0.418, allocations: 12 kB / 484.7 MB, free: 3.898 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.001906/0.4199, allocations: 1.135 MB / 485.8 MB, free: 2.668 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.42, allocations: 11.97 kB / 485.8 MB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001656/0.4201, allocations: 66.55 kB / 485.9 MB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.4203, allocations: 83.06 kB / 486 MB, free: 2.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008386/0.4212, allocations: 411.6 kB / 486.4 MB, free: 2.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.364e-05/0.4212, allocations: 20 kB / 486.4 MB, free: 2.035 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.116e-05/0.4213, allocations: 31.92 kB / 486.4 MB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.4224, allocations: 496.7 kB / 486.9 MB, free: 1.512 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.4224, allocations: 3.953 kB / 486.9 MB, free: 1.508 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.449e-05/0.4225, allocations: 16 kB / 486.9 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.4225, allocations: 0 / 486.9 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006631/0.4232, allocations: 368.1 kB / 487.3 MB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002054/0.4252, allocations: 0.9338 MB / 488.2 MB, free: 152 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007691/0.426, allocations: 0.5025 MB / 488.7 MB, free: 15.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.4261, allocations: 3.938 kB / 488.7 MB, free: 15.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008731/0.4269, allocations: 0.6344 MB / 489.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.194e-06/0.427, allocations: 0 / 489.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.00263/0.4296, allocations: 1.746 MB / 491.1 MB, free: 13.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002009/0.4298, allocations: 283.3 kB / 491.4 MB, free: 12.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00198/0.4318, allocations: 1.023 MB / 492.4 MB, free: 11.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.801e-05/0.4319, allocations: 45.69 kB / 492.5 MB, free: 11.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.4321, allocations: 145.9 kB / 492.6 MB, free: 11.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.4322, allocations: 71.16 kB / 492.7 MB, free: 11.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.4322, allocations: 15.98 kB / 492.7 MB, free: 11.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4324, allocations: 342.8 kB / 493 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005444/0.433, allocations: 343.8 kB / 493.4 MB, free: 10.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005676/0.4335, allocations: 384.6 kB / 493.7 MB, free: 10.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005906/0.4341, allocations: 496.8 kB / 494.2 MB, free: 9.863 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4342, allocations: 0 / 494.2 MB, free: 9.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001644/0.4358, allocations: 1.113 MB / 495.3 MB, free: 8.703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002237/0.436, allocations: 240.6 kB / 495.6 MB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4361, allocations: 4 kB / 495.6 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.4361, allocations: 3.938 kB / 495.6 MB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.658e-05/0.4361, allocations: 12 kB / 495.6 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.4362, allocations: 0 / 495.6 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.4365, allocations: 39.88 kB / 495.6 MB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/0.4367, allocations: 131.9 kB / 495.7 MB, free: 8.238 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.001113/0.4378, allocations: 0.7685 MB / 496.5 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.438, allocations: 87.06 kB / 496.6 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003292/0.4384, allocations: 151.5 kB / 496.7 MB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.4384, allocations: 0 / 496.7 MB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.4384, allocations: 0 / 496.7 MB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.4384, allocations: 0 / 496.7 MB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002862/0.4413, allocations: 1.942 MB / 498.7 MB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4413, allocations: 0 / 498.7 MB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.612e-05/0.4413, allocations: 7.922 kB / 498.7 MB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.4413, allocations: 0 / 498.7 MB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.208e-05/0.4414, allocations: 35.98 kB / 498.7 MB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.4414, allocations: 4 kB / 498.7 MB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4414, allocations: 0 / 498.7 MB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001897/0.4433, allocations: 1.385 MB / 0.4884 GB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000931/0.4442, allocations: 0.5542 MB / 0.4889 GB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.4444, allocations: 59.97 kB / 0.489 GB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.4448, allocations: 35.97 kB / 0.489 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000404/0.4452, allocations: 239.7 kB / 0.4893 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.4453, allocations: 131.9 kB / 0.4894 GB, free: 2.617 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001329/0.4467, allocations: 0.8615 MB / 0.4902 GB, free: 1.758 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4467, allocations: 0 / 0.4902 GB, free: 1.758 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005099/0.4472, allocations: 120 kB / 0.4903 GB, free: 1.641 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.2322/0.6794, allocations: 2.002 MB / 0.4923 GB, free: 108.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003057/0.6826, allocations: 1.528 MB / 0.4938 GB, free: 107.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.6826, allocations: 0 / 0.4938 GB, free: 107.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.6839, allocations: 1.152 MB / 0.4949 GB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.6851, allocations: 259.3 kB / 0.4952 GB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007286/0.6924, allocations: 4.814 MB / 0.4999 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006809/0.6931, allocations: 1.028 MB / 0.5009 GB, free: 105 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.6934, allocations: 38.3 kB / 0.5009 GB, free: 105 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.6935, allocations: 74.36 kB / 0.501 GB, free: 105 MB / 378.7 MB Notification: Performance of SimCode: time 1.753e-06/0.6935, allocations: 3.094 kB / 0.501 GB, free: 105 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.7258, allocations: 15.41 MB / 0.516 GB, free: 98.38 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002399/0.7261, allocations: 181.7 kB / 0.5162 GB, free: 98.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.223/2.949, allocations: 0 / 0.5162 GB, free: 98.13 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat