Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.2 MB / 245 MB, free: 7.629 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000806/0.000806, allocations: 93.16 kB / 297.2 MB, free: 6.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002227/0.0002228, allocations: 4 kB / 358 MB, free: 9.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1931, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09088/0.284, allocations: 84.11 MB / 493.6 MB, free: 6.504 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.2843, allocations: 73.22 kB / 493.7 MB, free: 6.434 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2345/0.5188, allocations: 39.03 MB / 0.5202 GB, free: 90.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5188, allocations: 0 / 0.5202 GB, free: 90.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.132e-05/0.5189, allocations: 15.81 kB / 0.5202 GB, free: 90.63 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001934/0.5208, allocations: 1.532 MB / 0.5217 GB, free: 89.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.5208, allocations: 7.156 kB / 0.5217 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.521, allocations: 64.28 kB / 0.5218 GB, free: 89.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/0.5212, allocations: 134.9 kB / 0.5219 GB, free: 89.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007628/0.522, allocations: 0.5068 MB / 0.5224 GB, free: 88.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.801e-05/0.522, allocations: 24 kB / 0.5224 GB, free: 88.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.282e-05/0.5221, allocations: 35.98 kB / 0.5225 GB, free: 88.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008589/0.523, allocations: 0.6183 MB / 0.5231 GB, free: 88.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.523, allocations: 4 kB / 0.5231 GB, free: 88.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/0.5231, allocations: 12 kB / 0.5231 GB, free: 88.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.5231, allocations: 7.953 kB / 0.5231 GB, free: 88.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005679/0.5237, allocations: 475.7 kB / 0.5236 GB, free: 87.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.5255, allocations: 1.173 MB / 0.5247 GB, free: 86.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006556/0.5262, allocations: 0.7168 MB / 0.5254 GB, free: 85.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.5262, allocations: 0 / 0.5254 GB, free: 85.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000752/0.5269, allocations: 0.7528 MB / 0.5261 GB, free: 84.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.375e-06/0.5269, allocations: 0 / 0.5261 GB, free: 84.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002144/0.5291, allocations: 2.136 MB / 0.5282 GB, free: 82.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.5292, allocations: 321 kB / 0.5285 GB, free: 82.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002233/0.5315, allocations: 1.636 MB / 0.5301 GB, free: 80.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.688e-05/0.5315, allocations: 45.69 kB / 0.5302 GB, free: 80.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.5317, allocations: 246.3 kB / 0.5304 GB, free: 80.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.749e-05/0.5318, allocations: 82.06 kB / 0.5305 GB, free: 80.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.266e-05/0.5319, allocations: 12 kB / 0.5305 GB, free: 80.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.532, allocations: 382.6 kB / 0.5309 GB, free: 79.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005143/0.5325, allocations: 455.7 kB / 0.5313 GB, free: 79.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005085/0.533, allocations: 486.3 kB / 0.5318 GB, free: 78.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004724/0.5335, allocations: 0.5888 MB / 0.5323 GB, free: 78.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.5335, allocations: 112 / 0.5323 GB, free: 78.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001409/0.5349, allocations: 1.365 MB / 0.5337 GB, free: 76.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001457/0.5351, allocations: 293.5 kB / 0.5339 GB, free: 76.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.5351, allocations: 3.984 kB / 0.534 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.5351, allocations: 0 / 0.534 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.055e-05/0.5352, allocations: 4 kB / 0.534 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.5352, allocations: 3.844 kB / 0.534 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.5356, allocations: 39.88 kB / 0.534 GB, free: 76.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.5357, allocations: 132 kB / 0.5341 GB, free: 76.32 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: 37 ($PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.001076/0.5368, allocations: 0.9879 MB / 0.5351 GB, free: 75.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.537, allocations: 130.5 kB / 0.5352 GB, free: 75.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004434/0.5374, allocations: 251.9 kB / 0.5355 GB, free: 74.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.5374, allocations: 7.984 kB / 0.5355 GB, free: 74.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.5375, allocations: 0 / 0.5355 GB, free: 74.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.5375, allocations: 7.469 kB / 0.5355 GB, free: 74.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002867/0.5403, allocations: 2.423 MB / 0.5378 GB, free: 72.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.5404, allocations: 4 kB / 0.5378 GB, free: 72.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.091e-05/0.5404, allocations: 0 / 0.5378 GB, free: 72.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.5404, allocations: 0 / 0.5378 GB, free: 72.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.876e-05/0.5405, allocations: 31.98 kB / 0.5379 GB, free: 72.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.5405, allocations: 7.844 kB / 0.5379 GB, free: 72.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5405, allocations: 0 / 0.5379 GB, free: 72.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.5422, allocations: 1.653 MB / 0.5395 GB, free: 70.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.5432, allocations: 0.6824 MB / 0.5402 GB, free: 69.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001843/0.5434, allocations: 59.97 kB / 0.5402 GB, free: 69.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00036/0.5438, allocations: 39.95 kB / 0.5403 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004513/0.5442, allocations: 378.8 kB / 0.5406 GB, free: 69.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.5444, allocations: 127.9 kB / 0.5407 GB, free: 69.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001708/0.5461, allocations: 1.349 MB / 0.5421 GB, free: 67.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.543e-06/0.5461, allocations: 0 / 0.5421 GB, free: 67.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000525/0.5466, allocations: 155.8 kB / 0.5422 GB, free: 67.8 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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.001908/0.5486, allocations: 2.284 MB / 0.5444 GB, free: 65.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.5501, allocations: 1.939 MB / 0.5463 GB, free: 63.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5501, allocations: 4.125 kB / 0.5463 GB, free: 63.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009196/0.551, allocations: 1.44 MB / 0.5477 GB, free: 61.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009399/0.552, allocations: 311.1 kB / 0.548 GB, free: 61.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008241/0.5602, allocations: 7.15 MB / 0.555 GB, free: 54.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008127/0.5611, allocations: 1.223 MB / 0.5562 GB, free: 53.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001573/0.5612, allocations: 47.78 kB / 0.5563 GB, free: 53.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.5614, allocations: 135.4 kB / 0.5564 GB, free: 52.92 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5614, allocations: 4 kB / 0.5564 GB, free: 52.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.5911, allocations: 20.53 MB / 0.5764 GB, free: 32.32 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001314/0.5912, allocations: 176.9 kB / 0.5766 GB, free: 32.08 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.654, allocations: 0 / 0.5766 GB, free: 32.08 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat