Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001516, allocations: 197 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.469/1.469, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 93 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.694e-05/3.705e-05, allocations: 7.984 kB / 350.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1056, allocations: 51.49 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3022/0.4079, allocations: 83.89 MB / 486 MB, free: 5.512 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001517/0.4081, allocations: 74.39 kB / 486.1 MB, free: 5.477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07168/0.4798, allocations: 38.12 MB / 0.5119 GB, free: 1.402 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4798, allocations: 0 / 0.5119 GB, free: 1.402 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.213e-05/0.4798, allocations: 12 kB / 0.5119 GB, free: 1.391 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.001232/0.4811, allocations: 1.017 MB / 0.5129 GB, free: 292 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4811, allocations: 8.031 kB / 0.5129 GB, free: 284 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.4813, allocations: 62.53 kB / 0.513 GB, free: 212 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.4814, allocations: 90.95 kB / 0.5131 GB, free: 120 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006724/0.4821, allocations: 415.6 kB / 0.5135 GB, free: 15.67 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/0.4822, allocations: 20 kB / 0.5135 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/0.4823, allocations: 35.92 kB / 0.5135 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008028/0.4831, allocations: 0.5022 MB / 0.514 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.4831, allocations: 0 / 0.514 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.668e-05/0.4831, allocations: 15.98 kB / 0.514 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.4832, allocations: 4 kB / 0.514 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005373/0.4837, allocations: 356.1 kB / 0.5144 GB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.4852, allocations: 0.8676 MB / 0.5152 GB, free: 13.82 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006609/0.4859, allocations: 0.5039 MB / 0.5157 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005806/0.4865, allocations: 0.489 MB / 0.5162 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.4865, allocations: 0 / 0.5162 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007882/0.4873, allocations: 0.6515 MB / 0.5168 GB, free: 12.12 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 2.184e-06/0.4873, allocations: 0 / 0.5168 GB, free: 12.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.00161/0.4889, allocations: 1.179 MB / 0.518 GB, free: 10.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/0.4891, allocations: 279.3 kB / 0.5183 GB, free: 10.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.4905, allocations: 1.027 MB / 0.5193 GB, free: 9.531 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.562e-05/0.4906, allocations: 41.69 kB / 0.5193 GB, free: 9.484 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.473e-05/0.4907, allocations: 150 kB / 0.5194 GB, free: 9.336 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.562e-05/0.4908, allocations: 83.03 kB / 0.5195 GB, free: 9.254 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.4908, allocations: 15.94 kB / 0.5195 GB, free: 9.238 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.491, allocations: 346.8 kB / 0.5199 GB, free: 8.891 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.4922, allocations: 344.2 kB / 0.5202 GB, free: 8.555 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008948/0.4931, allocations: 352.5 kB / 0.5205 GB, free: 8.211 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009453/0.4941, allocations: 497.2 kB / 0.521 GB, free: 7.684 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.4941, allocations: 0 / 0.521 GB, free: 7.684 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002752/0.4968, allocations: 1.121 MB / 0.5221 GB, free: 6.512 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002868/0.4971, allocations: 243.9 kB / 0.5223 GB, free: 6.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.4972, allocations: 4 kB / 0.5223 GB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.4972, allocations: 0 / 0.5223 GB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.235e-05/0.4973, allocations: 7.938 kB / 0.5223 GB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.4973, allocations: 3.984 kB / 0.5223 GB, free: 6.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.4979, allocations: 39.83 kB / 0.5224 GB, free: 6.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/0.4982, allocations: 147.4 kB / 0.5225 GB, free: 6.035 MB / 394.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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * 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.0006064/0.4988, allocations: 414 kB / 0.5229 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002391/0.4991, allocations: 98.86 kB / 0.523 GB, free: 5.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005793/0.4997, allocations: 155.8 kB / 0.5232 GB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.4997, allocations: 0 / 0.5232 GB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.4997, allocations: 4 kB / 0.5232 GB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.4998, allocations: 0 / 0.5232 GB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004283/0.504, allocations: 1.938 MB / 0.5251 GB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.5041, allocations: 7.938 kB / 0.5251 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.382e-05/0.5041, allocations: 8 kB / 0.5251 GB, free: 3.262 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.5042, allocations: 0 / 0.5251 GB, free: 3.262 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.5043, allocations: 39.97 kB / 0.5251 GB, free: 3.223 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.5043, allocations: 0 / 0.5251 GB, free: 3.223 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5043, allocations: 0 / 0.5251 GB, free: 3.223 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00314/0.5075, allocations: 1.377 MB / 0.5265 GB, free: 1.785 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/0.5091, allocations: 0.5543 MB / 0.527 GB, free: 1.211 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002819/0.5094, allocations: 67.97 kB / 0.5271 GB, free: 1.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005789/0.51, allocations: 35.81 kB / 0.5271 GB, free: 1.109 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00068/0.5107, allocations: 243.7 kB / 0.5273 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003149/0.511, allocations: 160.1 kB / 0.5275 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002171/0.5132, allocations: 0.8578 MB / 0.5283 GB, free: 15.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.228e-06/0.5133, allocations: 0 / 0.5283 GB, free: 15.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000844/0.5141, allocations: 127.9 kB / 0.5284 GB, free: 15.74 MB / 410.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * 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.004071/0.5182, allocations: 2.001 MB / 0.5304 GB, free: 13.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.5212, allocations: 1.503 MB / 0.5319 GB, free: 12.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.5213, allocations: 4 kB / 0.5319 GB, free: 12.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001933/0.5232, allocations: 1.109 MB / 0.533 GB, free: 10.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002108/0.5253, allocations: 281.8 kB / 0.5332 GB, free: 10.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.5311, allocations: 1.892 MB / 0.5351 GB, free: 8.672 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.5324, allocations: 1.039 MB / 0.5361 GB, free: 7.602 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002351/0.5326, allocations: 38.59 kB / 0.5361 GB, free: 7.566 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.5328, allocations: 75.41 kB / 0.5362 GB, free: 7.492 MB / 410.7 MB Notification: Performance of SimCode: time 1.423e-06/0.5329, allocations: 4 kB / 0.5362 GB, free: 7.488 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03849/0.5714, allocations: 16.46 MB / 0.5523 GB, free: 6.945 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/0.5715, allocations: 148.4 kB / 0.5524 GB, free: 6.723 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.183/2.755, allocations: 0 / 0.5524 GB, free: 6.723 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat