Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008628/0.0008627, allocations: 98.42 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.733e-05/1.734e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 50.42 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3452/0.4586, allocations: 82.2 MB / 469.7 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.4589, allocations: 69.94 kB / 469.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05227/0.5112, allocations: 26.94 MB / 496.8 MB, free: 1.664 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.5112, allocations: 0 / 496.8 MB, free: 1.664 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.102e-05/0.5112, allocations: 8 kB / 496.8 MB, free: 1.656 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001132/0.5124, allocations: 1.015 MB / 497.8 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.5124, allocations: 8.031 kB / 497.8 MB, free: 0.543 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.5126, allocations: 83.06 kB / 497.9 MB, free: 472 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005694/0.5132, allocations: 419.5 kB / 498.3 MB, free: 12 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.498e-05/0.5132, allocations: 16.05 kB / 498.3 MB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.22e-05/0.5133, allocations: 23.98 kB / 498.3 MB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005131/0.5138, allocations: 352 kB / 498.7 MB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006584/0.5145, allocations: 474.3 kB / 499.1 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.5145, allocations: 3.938 kB / 499.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.36e-05/0.5146, allocations: 11.98 kB / 499.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.5146, allocations: 4 kB / 499.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.516, allocations: 0.8834 MB / 0.4883 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005679/0.5166, allocations: 498.6 kB / 0.4888 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005086/0.5171, allocations: 480.9 kB / 0.4892 GB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.5171, allocations: 0 / 0.4892 GB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007235/0.5178, allocations: 0.6305 MB / 0.4899 GB, free: 12.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.523e-06/0.5178, allocations: 4 kB / 0.4899 GB, free: 12.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001341/0.5192, allocations: 0.8713 MB / 0.4907 GB, free: 11.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/0.5194, allocations: 283.3 kB / 0.491 GB, free: 11.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.5206, allocations: 0.98 MB / 0.4919 GB, free: 10.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.961e-05/0.5206, allocations: 37.7 kB / 0.492 GB, free: 10.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.5207, allocations: 145.9 kB / 0.4921 GB, free: 10.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.347e-05/0.5208, allocations: 63.27 kB / 0.4922 GB, free: 10.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-05/0.5209, allocations: 8 kB / 0.4922 GB, free: 10.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.521, allocations: 346.8 kB / 0.4925 GB, free: 9.766 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.5214, allocations: 339.6 kB / 0.4928 GB, free: 9.434 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.5218, allocations: 331.8 kB / 0.4932 GB, free: 9.109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/0.5222, allocations: 240 kB / 0.4934 GB, free: 8.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.5222, allocations: 3.938 kB / 0.4934 GB, free: 8.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001217/0.5234, allocations: 0.8287 MB / 0.4942 GB, free: 8.035 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002044/0.5236, allocations: 252.9 kB / 0.4944 GB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.5236, allocations: 0 / 0.4944 GB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.5237, allocations: 0 / 0.4944 GB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.352e-05/0.5237, allocations: 4 kB / 0.4944 GB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.5237, allocations: 4 kB / 0.4945 GB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.524, allocations: 43.81 kB / 0.4945 GB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/0.5242, allocations: 120 kB / 0.4946 GB, free: 7.578 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.0003449/0.5246, allocations: 404.1 kB / 0.495 GB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00129/0.5259, allocations: 0.9573 MB / 0.4959 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.526, allocations: 94.92 kB / 0.496 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002967/0.5263, allocations: 148 kB / 0.4962 GB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.5263, allocations: 4 kB / 0.4962 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.5263, allocations: 0 / 0.4962 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.5263, allocations: 0 / 0.4962 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.5294, allocations: 1.599 MB / 0.4977 GB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.5294, allocations: 3.938 kB / 0.4977 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-05/0.5294, allocations: 0 / 0.4977 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.5294, allocations: 0 / 0.4977 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-05/0.5296, allocations: 31.98 kB / 0.4978 GB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.5296, allocations: 8 kB / 0.4978 GB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5296, allocations: 3.938 kB / 0.4978 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.5319, allocations: 1.053 MB / 0.4988 GB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001349/0.5333, allocations: 0.562 MB / 0.4993 GB, free: 2.574 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.5335, allocations: 55.97 kB / 0.4994 GB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.5341, allocations: 31.97 kB / 0.4994 GB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006005/0.5347, allocations: 239.7 kB / 0.4997 GB, free: 2.254 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002451/0.535, allocations: 131.9 kB / 0.4998 GB, free: 2.125 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00175/0.5367, allocations: 0.807 MB / 0.5006 GB, free: 1.324 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5368, allocations: 0 / 0.5006 GB, free: 1.324 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007397/0.5375, allocations: 116 kB / 0.5007 GB, free: 1.211 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) * 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.002767/0.5403, allocations: 1.705 MB / 0.5023 GB, free: 15.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002291/0.5426, allocations: 1.48 MB / 0.5038 GB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5426, allocations: 0 / 0.5038 GB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.544, allocations: 1.117 MB / 0.5049 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/0.5457, allocations: 259.4 kB / 0.5051 GB, free: 12.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004564/0.5503, allocations: 1.857 MB / 0.5069 GB, free: 10.56 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.5515, allocations: 1.034 MB / 0.508 GB, free: 9.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002082/0.5517, allocations: 29.83 kB / 0.508 GB, free: 9.469 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.5518, allocations: 79.34 kB / 0.5081 GB, free: 9.391 MB / 394.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5518, allocations: 4 kB / 0.5081 GB, free: 9.387 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03968/0.5915, allocations: 14.73 MB / 0.5224 GB, free: 10.44 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/0.5918, allocations: 142.5 kB / 0.5226 GB, free: 10.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.991/2.583, allocations: 7.875 kB / 0.5226 GB, free: 10.23 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DLATREG.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat