Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00099/0.0009901, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007603/0.0007604, allocations: 82.7 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.622e-05/2.626e-05, allocations: 4 kB / 322.5 MB, free: 17.28 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/0.08843, allocations: 47.57 MB / 370.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2954/0.3839, allocations: 82.31 MB / 452.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.3841, allocations: 63.78 kB / 452.5 MB, free: 10.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0707/0.4548, allocations: 38.82 MB / 491.3 MB, free: 5.633 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4549, allocations: 0 / 491.3 MB, free: 5.633 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.828e-05/0.4549, allocations: 16 kB / 491.3 MB, free: 5.617 MB / 362.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.001545/0.4564, allocations: 1.311 MB / 492.6 MB, free: 4.207 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.4565, allocations: 16.02 kB / 492.6 MB, free: 4.191 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.4566, allocations: 54.55 kB / 492.7 MB, free: 4.129 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.4568, allocations: 134.4 kB / 492.8 MB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007973/0.4576, allocations: 0.5055 MB / 493.3 MB, free: 3.441 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.07e-05/0.4577, allocations: 28 kB / 493.4 MB, free: 3.414 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-05/0.4578, allocations: 35.92 kB / 493.4 MB, free: 3.379 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009353/0.4587, allocations: 0.6144 MB / 494 MB, free: 2.758 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.4587, allocations: 0 / 494 MB, free: 2.758 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.4588, allocations: 12 kB / 494 MB, free: 2.746 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.4588, allocations: 4 kB / 494 MB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006317/0.4595, allocations: 481 kB / 494.5 MB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.4613, allocations: 1.178 MB / 495.7 MB, free: 1.039 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007604/0.4621, allocations: 0.6936 MB / 496.4 MB, free: 344 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007397/0.4629, allocations: 0.6804 MB / 497.1 MB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.4629, allocations: 4 kB / 497.1 MB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008669/0.4638, allocations: 0.7368 MB / 497.8 MB, free: 14.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/0.4638, allocations: 3.938 kB / 497.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001844/0.4656, allocations: 1.418 MB / 499.2 MB, free: 13.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001808/0.4658, allocations: 325 kB / 499.5 MB, free: 13.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/0.468, allocations: 1.619 MB / 0.4894 GB, free: 11.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.197e-05/0.4681, allocations: 45.7 kB / 0.4894 GB, free: 11.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.4683, allocations: 250.3 kB / 0.4897 GB, free: 11.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.4685, allocations: 75.19 kB / 0.4898 GB, free: 11.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.475e-05/0.4685, allocations: 19.92 kB / 0.4898 GB, free: 10.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.4687, allocations: 382.7 kB / 0.4901 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005729/0.4693, allocations: 447.8 kB / 0.4906 GB, free: 10.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005736/0.4698, allocations: 459.5 kB / 0.491 GB, free: 9.719 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006483/0.4705, allocations: 0.5878 MB / 0.4916 GB, free: 9.082 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4705, allocations: 0 / 0.4916 GB, free: 9.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00171/0.4722, allocations: 1.345 MB / 0.4929 GB, free: 7.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002177/0.4725, allocations: 285.5 kB / 0.4932 GB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4725, allocations: 4 kB / 0.4932 GB, free: 7.348 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.4725, allocations: 0 / 0.4932 GB, free: 7.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.636e-05/0.4725, allocations: 3.984 kB / 0.4932 GB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.4725, allocations: 3.953 kB / 0.4932 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.4729, allocations: 47.88 kB / 0.4932 GB, free: 7.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/0.4731, allocations: 128.2 kB / 0.4933 GB, free: 7.168 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: 37 ($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,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,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,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,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 () * 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.0004145/0.4735, allocations: 467.6 kB / 0.4938 GB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.4736, allocations: 130.5 kB / 0.4939 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004234/0.4741, allocations: 252 kB / 0.4942 GB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.4741, allocations: 4 kB / 0.4942 GB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.4741, allocations: 4 kB / 0.4942 GB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.4741, allocations: 3.953 kB / 0.4942 GB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003046/0.4772, allocations: 2.407 MB / 0.4965 GB, free: 3.738 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4772, allocations: 0 / 0.4965 GB, free: 3.738 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.037e-05/0.4772, allocations: 3.938 kB / 0.4965 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.4772, allocations: 0 / 0.4965 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.842e-05/0.4773, allocations: 39.97 kB / 0.4966 GB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.4773, allocations: 3.953 kB / 0.4966 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4773, allocations: 0 / 0.4966 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.4794, allocations: 1.626 MB / 0.4982 GB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.4804, allocations: 0.6746 MB / 0.4988 GB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.4806, allocations: 63.95 kB / 0.4989 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00034/0.4809, allocations: 39.97 kB / 0.4989 GB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000593/0.4815, allocations: 379.6 kB / 0.4993 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/0.4817, allocations: 132 kB / 0.4994 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001898/0.4836, allocations: 1.332 MB / 0.5007 GB, free: 15.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4836, allocations: 0 / 0.5007 GB, free: 15.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005097/0.4841, allocations: 147.9 kB / 0.5008 GB, free: 15.21 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: 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) * 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.002535/0.4867, allocations: 2.27 MB / 0.5031 GB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00223/0.4889, allocations: 1.917 MB / 0.5049 GB, free: 10.85 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4889, allocations: 0 / 0.5049 GB, free: 10.85 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.4904, allocations: 1.432 MB / 0.5063 GB, free: 9.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.4917, allocations: 305 kB / 0.5066 GB, free: 9.023 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004928/0.4966, allocations: 2.748 MB / 0.5093 GB, free: 6.227 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.4977, allocations: 1.223 MB / 0.5105 GB, free: 4.973 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.4979, allocations: 37.5 kB / 0.5105 GB, free: 4.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.4981, allocations: 131.4 kB / 0.5107 GB, free: 4.801 MB / 394.7 MB Notification: Performance of SimCode: time 1.733e-06/0.4981, allocations: 0 / 0.5107 GB, free: 4.801 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2223/0.7204, allocations: 20.57 MB / 0.5307 GB, free: 129.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/0.7206, allocations: 154.5 kB / 0.5309 GB, free: 129.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/2.856, allocations: 0 / 0.5309 GB, free: 129.7 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DLATREGSRL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat