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.001611/0.001611, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00106/0.00106, allocations: 96.09 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.398e-05/2.399e-05, allocations: 4 kB / 343.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1381, allocations: 51.49 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4003/0.5384, allocations: 83.01 MB / 478.3 MB, free: 9.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.5387, allocations: 65.81 kB / 478.3 MB, free: 9.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06526/0.604, allocations: 27 MB / 0.4935 GB, free: 4.172 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.6041, allocations: 0 / 0.4935 GB, free: 4.172 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.955e-05/0.6041, allocations: 12 kB / 0.4935 GB, free: 4.16 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.00134/0.6055, allocations: 1.013 MB / 0.4945 GB, free: 3.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.6055, allocations: 8.031 kB / 0.4945 GB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.6057, allocations: 83.06 kB / 0.4946 GB, free: 3.043 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007408/0.6065, allocations: 414.1 kB / 0.495 GB, free: 2.629 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.8e-05/0.6065, allocations: 19.86 kB / 0.495 GB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.785e-05/0.6066, allocations: 27.92 kB / 0.495 GB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007203/0.6074, allocations: 335.7 kB / 0.4954 GB, free: 2.359 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009498/0.6083, allocations: 485.1 kB / 0.4958 GB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.6083, allocations: 0 / 0.4958 GB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.315e-05/0.6084, allocations: 15.94 kB / 0.4958 GB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.6085, allocations: 4.75 kB / 0.4958 GB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.6103, allocations: 0.8866 MB / 0.4967 GB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008177/0.6112, allocations: 486.6 kB / 0.4972 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000757/0.6119, allocations: 480.9 kB / 0.4976 GB, free: 124 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.612, allocations: 4 kB / 0.4976 GB, free: 120 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/0.613, allocations: 0.6266 MB / 0.4982 GB, free: 15.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.266e-06/0.613, allocations: 4 kB / 0.4982 GB, free: 15.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001949/0.615, allocations: 0.8703 MB / 0.4991 GB, free: 14.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002193/0.6152, allocations: 283.2 kB / 0.4994 GB, free: 14.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.6172, allocations: 0.98 MB / 0.5003 GB, free: 13.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.479e-05/0.6173, allocations: 37.69 kB / 0.5004 GB, free: 13.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.6174, allocations: 149.9 kB / 0.5005 GB, free: 13.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.6176, allocations: 75.19 kB / 0.5006 GB, free: 12.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.315e-05/0.6177, allocations: 8 kB / 0.5006 GB, free: 12.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.6178, allocations: 346.9 kB / 0.5009 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000658/0.6185, allocations: 335.8 kB / 0.5012 GB, free: 12.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006537/0.6192, allocations: 331.8 kB / 0.5015 GB, free: 11.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004616/0.6196, allocations: 235.8 kB / 0.5018 GB, free: 11.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.6197, allocations: 0 / 0.5018 GB, free: 11.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001763/0.6214, allocations: 0.8304 MB / 0.5026 GB, free: 10.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002343/0.6217, allocations: 239.9 kB / 0.5028 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.6217, allocations: 4 kB / 0.5028 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.6217, allocations: 0 / 0.5028 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.988e-05/0.6218, allocations: 0 / 0.5028 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.6218, allocations: 15.91 kB / 0.5028 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004447/0.6222, allocations: 35.89 kB / 0.5029 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002191/0.6225, allocations: 123 kB / 0.503 GB, free: 10.46 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.000487/0.623, allocations: 406 kB / 0.5034 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001986/0.625, allocations: 0.9573 MB / 0.5043 GB, free: 9.055 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.6251, allocations: 86.97 kB / 0.5044 GB, free: 8.969 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004316/0.6256, allocations: 156 kB / 0.5045 GB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.6256, allocations: 4 kB / 0.5045 GB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.6256, allocations: 0 / 0.5045 GB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.6256, allocations: 0 / 0.5045 GB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002974/0.6286, allocations: 1.591 MB / 0.5061 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.6286, allocations: 0 / 0.5061 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.924e-05/0.6287, allocations: 7.938 kB / 0.5061 GB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.6287, allocations: 0 / 0.5061 GB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-05/0.6288, allocations: 35.97 kB / 0.5061 GB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.6288, allocations: 7.984 kB / 0.5061 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.6288, allocations: 0 / 0.5061 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.6309, allocations: 1.053 MB / 0.5072 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/0.6321, allocations: 0.562 MB / 0.5077 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.6324, allocations: 55.95 kB / 0.5078 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004678/0.6328, allocations: 31.97 kB / 0.5078 GB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005556/0.6334, allocations: 235.8 kB / 0.508 GB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002086/0.6336, allocations: 132.4 kB / 0.5082 GB, free: 5.016 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001569/0.6352, allocations: 0.8148 MB / 0.5089 GB, free: 4.207 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6352, allocations: 0 / 0.5089 GB, free: 4.207 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006471/0.6359, allocations: 116 kB / 0.5091 GB, free: 4.094 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.002599/0.6385, allocations: 1.698 MB / 0.5107 GB, free: 2.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00224/0.6407, allocations: 1.476 MB / 0.5122 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.6408, allocations: 0 / 0.5122 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.6422, allocations: 1.125 MB / 0.5133 GB, free: 15.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001535/0.6438, allocations: 256.9 kB / 0.5135 GB, free: 15.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004153/0.6479, allocations: 1.853 MB / 0.5153 GB, free: 13.45 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.649, allocations: 1.031 MB / 0.5163 GB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.6492, allocations: 37.81 kB / 0.5164 GB, free: 12.36 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.6493, allocations: 71.41 kB / 0.5164 GB, free: 12.29 MB / 394.7 MB Notification: Performance of SimCode: time 2.675e-06/0.6493, allocations: 4 kB / 0.5164 GB, free: 12.28 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04272/0.692, allocations: 14.74 MB / 0.5308 GB, free: 13.37 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002597/0.6924, allocations: 134.4 kB / 0.531 GB, free: 13.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.7, allocations: 0 / 0.531 GB, free: 13.17 MB / 410.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