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.001017/0.001017, allocations: 201.8 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008334/0.0008333, allocations: 95.09 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002116/0.0002117, allocations: 8 kB / 358 MB, free: 9.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1943, allocations: 51.47 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08984/0.2842, allocations: 83.74 MB / 493.2 MB, free: 6.848 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.2845, allocations: 75.94 kB / 493.3 MB, free: 6.773 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1979/0.4823, allocations: 27.01 MB / 0.5081 GB, free: 93.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4824, allocations: 0 / 0.5081 GB, free: 93.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.803e-05/0.4824, allocations: 9.219 kB / 0.5081 GB, free: 93.48 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.001313/0.4837, allocations: 1.136 MB / 0.5092 GB, free: 92.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.4838, allocations: 9.625 kB / 0.5093 GB, free: 92.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.4839, allocations: 65.03 kB / 0.5093 GB, free: 92.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.4841, allocations: 94.53 kB / 0.5094 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006221/0.4847, allocations: 408.3 kB / 0.5098 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.185e-05/0.4848, allocations: 17.53 kB / 0.5098 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.316e-05/0.4848, allocations: 28.8 kB / 0.5098 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008011/0.4856, allocations: 0.4936 MB / 0.5103 GB, free: 92.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.4857, allocations: 6.594 kB / 0.5103 GB, free: 92.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.799e-05/0.4857, allocations: 11.88 kB / 0.5103 GB, free: 92.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.4857, allocations: 2.312 kB / 0.5103 GB, free: 92.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006823/0.4864, allocations: 366.2 kB / 0.5107 GB, free: 92.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.4879, allocations: 0.928 MB / 0.5116 GB, free: 91.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00058/0.4885, allocations: 0.5036 MB / 0.5121 GB, free: 91.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.4885, allocations: 0 / 0.5121 GB, free: 91.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000656/0.4892, allocations: 0.6331 MB / 0.5127 GB, free: 91.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.643e-06/0.4892, allocations: 0 / 0.5127 GB, free: 91.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001843/0.491, allocations: 1.754 MB / 0.5144 GB, free: 90.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.969e-05/0.4911, allocations: 287.5 kB / 0.5147 GB, free: 90.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.4923, allocations: 1.02 MB / 0.5157 GB, free: 90.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.4924, allocations: 41.14 kB / 0.5157 GB, free: 90.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.479e-05/0.4925, allocations: 147.2 kB / 0.5159 GB, free: 90.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.4926, allocations: 68.56 kB / 0.5159 GB, free: 89.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.226e-05/0.4926, allocations: 11.3 kB / 0.5159 GB, free: 89.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.4927, allocations: 343.8 kB / 0.5163 GB, free: 89.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004536/0.4932, allocations: 348.8 kB / 0.5166 GB, free: 89.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004618/0.4937, allocations: 379.4 kB / 0.517 GB, free: 89.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004599/0.4941, allocations: 499.3 kB / 0.5174 GB, free: 89.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.4941, allocations: 0 / 0.5174 GB, free: 89.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001283/0.4954, allocations: 1.11 MB / 0.5185 GB, free: 88.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001204/0.4956, allocations: 247.8 kB / 0.5188 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.4956, allocations: 3.094 kB / 0.5188 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.4956, allocations: 3.953 kB / 0.5188 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.358e-05/0.4956, allocations: 11.44 kB / 0.5188 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.4956, allocations: 0 / 0.5188 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.496, allocations: 41.45 kB / 0.5188 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.4961, allocations: 124.9 kB / 0.5189 GB, free: 88.3 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.0007522/0.4969, allocations: 0.7669 MB / 0.5197 GB, free: 87.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.497, allocations: 88.91 kB / 0.5198 GB, free: 87.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/0.4972, allocations: 152.2 kB / 0.5199 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4973, allocations: 0 / 0.5199 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.4973, allocations: 3.953 kB / 0.5199 GB, free: 87.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.4973, allocations: 0 / 0.5199 GB, free: 87.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.4993, allocations: 1.95 MB / 0.5218 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4993, allocations: 0 / 0.5218 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.054e-05/0.4993, allocations: 3.375 kB / 0.5218 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4993, allocations: 7.656 kB / 0.5218 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.857e-05/0.4994, allocations: 39.56 kB / 0.5219 GB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4994, allocations: 0 / 0.5219 GB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4994, allocations: 0 / 0.5219 GB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.5008, allocations: 1.377 MB / 0.5232 GB, free: 85.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007028/0.5015, allocations: 0.554 MB / 0.5238 GB, free: 85.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/0.5017, allocations: 63.39 kB / 0.5238 GB, free: 85.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.502, allocations: 38.27 kB / 0.5239 GB, free: 85.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002887/0.5023, allocations: 235.8 kB / 0.5241 GB, free: 85.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.5024, allocations: 127.5 kB / 0.5242 GB, free: 85.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008305/0.5032, allocations: 0.8501 MB / 0.525 GB, free: 84.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5032, allocations: 0 / 0.525 GB, free: 84.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004033/0.5036, allocations: 120 kB / 0.5252 GB, free: 84.35 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.001634/0.5053, allocations: 2.015 MB / 0.5271 GB, free: 82.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.5065, allocations: 1.539 MB / 0.5286 GB, free: 80.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5065, allocations: 0 / 0.5286 GB, free: 80.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007252/0.5072, allocations: 1.148 MB / 0.5297 GB, free: 79.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008478/0.5081, allocations: 275.6 kB / 0.53 GB, free: 79.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005036/0.5131, allocations: 4.799 MB / 0.5347 GB, free: 74.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.5137, allocations: 1.035 MB / 0.5357 GB, free: 73.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.5138, allocations: 29.52 kB / 0.5357 GB, free: 73.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.655e-05/0.5139, allocations: 71.41 kB / 0.5358 GB, free: 73.18 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5139, allocations: 4 kB / 0.5358 GB, free: 73.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03528/0.5491, allocations: 15.41 MB / 0.5509 GB, free: 57.75 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.5494, allocations: 176.2 kB / 0.551 GB, free: 57.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.434, allocations: 0 / 0.551 GB, free: 57.5 MB / 378.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