Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.571/1.571, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009407/0.0009408, allocations: 93.44 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.531e-05/3.534e-05, allocations: 4 kB / 350.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 51.47 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3709/0.481, allocations: 83.68 MB / 485.8 MB, free: 5.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.4813, allocations: 73.67 kB / 485.9 MB, free: 5.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0512/0.5325, allocations: 27.19 MB / 0.501 GB, free: 12.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5325, allocations: 0 / 0.501 GB, free: 12.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.143e-05/0.5326, allocations: 12 kB / 0.501 GB, free: 12.46 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.001051/0.5336, allocations: 1.01 MB / 0.502 GB, free: 11.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.5337, allocations: 8.031 kB / 0.502 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.5338, allocations: 58.55 kB / 0.5021 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.5339, allocations: 87.06 kB / 0.5022 GB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006698/0.5346, allocations: 411.5 kB / 0.5026 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.5347, allocations: 20 kB / 0.5026 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/0.5347, allocations: 24 kB / 0.5026 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007895/0.5355, allocations: 0.4903 MB / 0.5031 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.5356, allocations: 7.953 kB / 0.5031 GB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.18e-05/0.5356, allocations: 12 kB / 0.5031 GB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-06/0.5356, allocations: 7.984 kB / 0.5031 GB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005432/0.5362, allocations: 356.1 kB / 0.5034 GB, free: 9.859 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.5378, allocations: 0.9262 MB / 0.5044 GB, free: 8.883 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006212/0.5384, allocations: 0.4908 MB / 0.5048 GB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005994/0.539, allocations: 492.9 kB / 0.5053 GB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.5391, allocations: 4 kB / 0.5053 GB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007943/0.5399, allocations: 0.6227 MB / 0.5059 GB, free: 7.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.555e-06/0.5399, allocations: 0 / 0.5059 GB, free: 7.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001688/0.5416, allocations: 1.136 MB / 0.507 GB, free: 6.047 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002029/0.5418, allocations: 287.3 kB / 0.5073 GB, free: 5.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001593/0.5434, allocations: 1.011 MB / 0.5083 GB, free: 4.691 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.664e-05/0.5435, allocations: 41.69 kB / 0.5083 GB, free: 4.645 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.5436, allocations: 149.9 kB / 0.5085 GB, free: 4.492 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.5437, allocations: 75.23 kB / 0.5085 GB, free: 4.418 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.89e-05/0.5438, allocations: 12 kB / 0.5085 GB, free: 4.406 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.544, allocations: 342.8 kB / 0.5089 GB, free: 4.062 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005213/0.5445, allocations: 347.8 kB / 0.5092 GB, free: 3.723 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004969/0.545, allocations: 347.8 kB / 0.5095 GB, free: 3.383 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00053/0.5456, allocations: 495.9 kB / 0.51 GB, free: 2.855 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.5456, allocations: 0 / 0.51 GB, free: 2.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001464/0.547, allocations: 1.092 MB / 0.5111 GB, free: 1.715 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001931/0.5472, allocations: 251.8 kB / 0.5113 GB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.5473, allocations: 5.969 kB / 0.5113 GB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.5473, allocations: 0 / 0.5113 GB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.084e-05/0.5473, allocations: 0 / 0.5113 GB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.5474, allocations: 4 kB / 0.5113 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.5477, allocations: 39.81 kB / 0.5114 GB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.5479, allocations: 126.9 kB / 0.5115 GB, free: 1.258 MB / 378.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.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,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,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,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 () * 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.0003885/0.5483, allocations: 414 kB / 0.5119 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.5484, allocations: 91.06 kB / 0.512 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002611/0.5487, allocations: 147.6 kB / 0.5121 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.5487, allocations: 4 kB / 0.5121 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5487, allocations: 0 / 0.5121 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.5487, allocations: 0 / 0.5121 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.5511, allocations: 1.942 MB / 0.514 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.5511, allocations: 0 / 0.514 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.177e-05/0.5511, allocations: 3.984 kB / 0.514 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.5511, allocations: 4 kB / 0.514 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.815e-05/0.5512, allocations: 31.98 kB / 0.514 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.5512, allocations: 4 kB / 0.5141 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.5512, allocations: 0 / 0.5141 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.5529, allocations: 1.357 MB / 0.5154 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008732/0.5538, allocations: 0.5582 MB / 0.5159 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.554, allocations: 61.45 kB / 0.516 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.5543, allocations: 39.88 kB / 0.516 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004341/0.5547, allocations: 235.7 kB / 0.5162 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/0.5549, allocations: 132.3 kB / 0.5164 GB, free: 12.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001238/0.5562, allocations: 0.85 MB / 0.5172 GB, free: 11.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5562, allocations: 0 / 0.5172 GB, free: 11.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004435/0.5566, allocations: 120 kB / 0.5173 GB, free: 11.06 MB / 394.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) * 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.002242/0.5589, allocations: 2.001 MB / 0.5193 GB, free: 8.988 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001791/0.5607, allocations: 1.5 MB / 0.5207 GB, free: 7.402 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5607, allocations: 0 / 0.5207 GB, free: 7.402 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.5618, allocations: 1.144 MB / 0.5218 GB, free: 6.172 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.563, allocations: 257.2 kB / 0.5221 GB, free: 5.934 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003269/0.5663, allocations: 1.87 MB / 0.5239 GB, free: 4.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007574/0.567, allocations: 1.027 MB / 0.5249 GB, free: 2.961 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.5672, allocations: 47.73 kB / 0.525 GB, free: 2.918 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.125e-05/0.5673, allocations: 75.41 kB / 0.525 GB, free: 2.844 MB / 394.7 MB Notification: Performance of SimCode: time 1.653e-06/0.5673, allocations: 0 / 0.525 GB, free: 2.844 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02843/0.5957, allocations: 15.41 MB / 0.5401 GB, free: 3.367 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001691/0.5959, allocations: 152.3 kB / 0.5402 GB, free: 3.141 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.078/2.674, allocations: 3.938 kB / 0.5402 GB, free: 3.137 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat