Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 180.4 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009566/0.0009565, allocations: 97.22 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003463/0.0003463, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2663, allocations: 50.41 MB / 401.6 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.114/0.3804, allocations: 82.93 MB / 484.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.3808, allocations: 72.69 kB / 484.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05287/0.4337, allocations: 26.97 MB / 0.4996 GB, free: 2.438 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4338, allocations: 0 / 0.4996 GB, free: 2.438 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.4338, allocations: 8 kB / 0.4996 GB, free: 2.43 MB / 378.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.001307/0.4351, allocations: 1.139 MB / 0.5007 GB, free: 1.195 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4352, allocations: 8.031 kB / 0.5007 GB, free: 1.188 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.759e-05/0.4353, allocations: 58.55 kB / 0.5007 GB, free: 1.121 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001295/0.4354, allocations: 87.02 kB / 0.5008 GB, free: 1.035 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000663/0.4361, allocations: 411.6 kB / 0.5012 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.4361, allocations: 16 kB / 0.5012 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-05/0.4362, allocations: 24 kB / 0.5013 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008841/0.4371, allocations: 0.5039 MB / 0.5017 GB, free: 40 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.4371, allocations: 3.938 kB / 0.5017 GB, free: 36 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.59e-05/0.4372, allocations: 19.97 kB / 0.5018 GB, free: 16 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.4372, allocations: 7.938 kB / 0.5018 GB, free: 8 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1872/0.6244, allocations: 360.8 kB / 0.5021 GB, free: 96.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.6267, allocations: 0.9201 MB / 0.503 GB, free: 96.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007973/0.6275, allocations: 0.5011 MB / 0.5035 GB, free: 96.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.6276, allocations: 2.281 kB / 0.5035 GB, free: 96.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.6286, allocations: 0.6429 MB / 0.5041 GB, free: 96.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.116e-06/0.6286, allocations: 0.5 kB / 0.5041 GB, free: 96.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002532/0.6311, allocations: 1.751 MB / 0.5058 GB, free: 95.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.6313, allocations: 283.1 kB / 0.5061 GB, free: 95.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/0.6331, allocations: 1.023 MB / 0.5071 GB, free: 95.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.416e-05/0.6332, allocations: 42.55 kB / 0.5072 GB, free: 95.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-05/0.6333, allocations: 145.6 kB / 0.5073 GB, free: 95.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.475e-05/0.6334, allocations: 75.34 kB / 0.5074 GB, free: 95.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.72e-05/0.6334, allocations: 11.34 kB / 0.5074 GB, free: 95.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.525e-05/0.6335, allocations: 342.1 kB / 0.5077 GB, free: 94.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004291/0.6339, allocations: 349.6 kB / 0.508 GB, free: 94.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004085/0.6344, allocations: 372.1 kB / 0.5084 GB, free: 94.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.6348, allocations: 498.2 kB / 0.5089 GB, free: 94.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.6348, allocations: 9.094 kB / 0.5089 GB, free: 94.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001222/0.636, allocations: 1.105 MB / 0.51 GB, free: 94.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.6362, allocations: 250.4 kB / 0.5102 GB, free: 94.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.6362, allocations: 1.188 kB / 0.5102 GB, free: 94.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.6362, allocations: 0 / 0.5102 GB, free: 94.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.527e-05/0.6362, allocations: 3.719 kB / 0.5102 GB, free: 94.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.6362, allocations: 3.812 kB / 0.5102 GB, free: 94.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/0.6366, allocations: 39.75 kB / 0.5102 GB, free: 94.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.6367, allocations: 123.6 kB / 0.5104 GB, free: 94.01 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.0007613/0.6375, allocations: 0.7708 MB / 0.5111 GB, free: 93.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.6376, allocations: 86.28 kB / 0.5112 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002608/0.6379, allocations: 148.4 kB / 0.5113 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.6379, allocations: 3.875 kB / 0.5113 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.6379, allocations: 3.75 kB / 0.5113 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.6379, allocations: 0 / 0.5113 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.6402, allocations: 1.951 MB / 0.5132 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.6402, allocations: 3.562 kB / 0.5132 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.199e-05/0.6403, allocations: 0 / 0.5132 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.6403, allocations: 11.98 kB / 0.5133 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/0.6403, allocations: 30.28 kB / 0.5133 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.6404, allocations: 0 / 0.5133 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6404, allocations: 0 / 0.5133 GB, free: 92.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.6419, allocations: 1.382 MB / 0.5146 GB, free: 91.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000829/0.6428, allocations: 0.5538 MB / 0.5152 GB, free: 91.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.643, allocations: 57.66 kB / 0.5152 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.6433, allocations: 47.94 kB / 0.5153 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003465/0.6436, allocations: 234.7 kB / 0.5155 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.6437, allocations: 128.4 kB / 0.5156 GB, free: 91.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001031/0.6448, allocations: 0.8536 MB / 0.5165 GB, free: 90.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6448, allocations: 4.062 kB / 0.5165 GB, free: 90.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004665/0.6453, allocations: 122.1 kB / 0.5166 GB, free: 90.95 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.001828/0.6471, allocations: 2.004 MB / 0.5185 GB, free: 89.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.6485, allocations: 1.544 MB / 0.52 GB, free: 88.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6485, allocations: 0 / 0.52 GB, free: 88.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007804/0.6493, allocations: 1.141 MB / 0.5212 GB, free: 87.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008989/0.6502, allocations: 248.2 kB / 0.5214 GB, free: 87.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005561/0.6558, allocations: 4.799 MB / 0.5261 GB, free: 83.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006009/0.6564, allocations: 1.035 MB / 0.5271 GB, free: 82.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.6566, allocations: 42.2 kB / 0.5271 GB, free: 82.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.465e-05/0.6567, allocations: 74 kB / 0.5272 GB, free: 81.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6567, allocations: 0 / 0.5272 GB, free: 81.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02414/0.6808, allocations: 15.43 MB / 0.5423 GB, free: 67.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001268/0.681, allocations: 172.9 kB / 0.5424 GB, free: 67.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/2.816, allocations: 7.781 kB / 0.5424 GB, free: 67.21 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat