Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG",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.0009753/0.0009753, allocations: 176.4 kB / 8.346 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.414/1.414, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0008698/0.0008696, allocations: 97.72 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.658e-05/1.659e-05, allocations: 7.938 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 50.41 MB / 387.6 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.454, allocations: 82.38 MB / 469.9 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.4543, allocations: 63.97 kB / 470 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05117/0.5055, allocations: 28.12 MB / 498.1 MB, free: 252 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.5055, allocations: 0 / 498.1 MB, free: 252 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.5055, allocations: 8 kB / 498.1 MB, free: 244 kB / 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.0009457/0.5065, allocations: 1.008 MB / 499.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.5065, allocations: 8.031 kB / 499.1 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.5067, allocations: 90.97 kB / 499.2 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005204/0.5072, allocations: 423.5 kB / 499.6 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.5072, allocations: 16 kB / 499.7 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.16e-05/0.5073, allocations: 20 kB / 499.7 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004619/0.5078, allocations: 352.1 kB / 0.4883 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006234/0.5084, allocations: 498.2 kB / 0.4888 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.5084, allocations: 0 / 0.4888 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.333e-05/0.5085, allocations: 8 kB / 0.4888 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.5085, allocations: 4 kB / 0.4888 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.5096, allocations: 0.8248 MB / 0.4896 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005415/0.5101, allocations: 498.4 kB / 0.4901 GB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004853/0.5106, allocations: 484.7 kB / 0.4905 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-06/0.5107, allocations: 4 kB / 0.4905 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006744/0.5113, allocations: 0.6548 MB / 0.4912 GB, free: 11.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.593e-06/0.5114, allocations: 0 / 0.4912 GB, free: 11.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001257/0.5126, allocations: 0.9055 MB / 0.4921 GB, free: 10.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.5128, allocations: 279.3 kB / 0.4923 GB, free: 9.926 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.5139, allocations: 0.9918 MB / 0.4933 GB, free: 8.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.432e-05/0.514, allocations: 41.7 kB / 0.4933 GB, free: 8.883 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.756e-05/0.5141, allocations: 146 kB / 0.4935 GB, free: 8.734 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.1e-05/0.5142, allocations: 75.16 kB / 0.4935 GB, free: 8.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.5143, allocations: 15.98 kB / 0.4936 GB, free: 8.645 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.5144, allocations: 342.8 kB / 0.4939 GB, free: 8.301 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00039/0.5148, allocations: 340.1 kB / 0.4942 GB, free: 7.969 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003811/0.5152, allocations: 348.3 kB / 0.4945 GB, free: 7.629 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.5154, allocations: 245 kB / 0.4948 GB, free: 7.391 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.5155, allocations: 4 kB / 0.4948 GB, free: 7.387 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001078/0.5165, allocations: 0.8486 MB / 0.4956 GB, free: 6.531 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.5167, allocations: 241 kB / 0.4958 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.5167, allocations: 0 / 0.4958 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.5167, allocations: 4 kB / 0.4958 GB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.115e-05/0.5168, allocations: 7.953 kB / 0.4958 GB, free: 6.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.5168, allocations: 4 kB / 0.4959 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.5171, allocations: 39.81 kB / 0.4959 GB, free: 6.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/0.5172, allocations: 152.2 kB / 0.496 GB, free: 6.051 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.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.0003078/0.5176, allocations: 402.1 kB / 0.4964 GB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001319/0.5189, allocations: 0.9805 MB / 0.4974 GB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.519, allocations: 91 kB / 0.4975 GB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002193/0.5192, allocations: 152.1 kB / 0.4976 GB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.5192, allocations: 0 / 0.4976 GB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.5192, allocations: 0 / 0.4976 GB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.5193, allocations: 0 / 0.4976 GB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0019/0.5212, allocations: 1.627 MB / 0.4992 GB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.5212, allocations: 0 / 0.4992 GB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.171e-05/0.5212, allocations: 0 / 0.4992 GB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.391e-06/0.5212, allocations: 3.953 kB / 0.4992 GB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.329e-05/0.5213, allocations: 35.98 kB / 0.4992 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5213, allocations: 0 / 0.4992 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5213, allocations: 0 / 0.4992 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.5226, allocations: 1.068 MB / 0.5003 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007383/0.5234, allocations: 0.5659 MB / 0.5008 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001636/0.5236, allocations: 63.92 kB / 0.5009 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.5238, allocations: 31.97 kB / 0.5009 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003749/0.5242, allocations: 243.7 kB / 0.5012 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/0.5244, allocations: 151.9 kB / 0.5013 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009537/0.5254, allocations: 0.8227 MB / 0.5021 GB, free: 15.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5254, allocations: 0 / 0.5021 GB, free: 15.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004454/0.5258, allocations: 120 kB / 0.5022 GB, free: 15.57 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.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.001832/0.5277, allocations: 1.709 MB / 0.5039 GB, free: 13.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.5291, allocations: 1.484 MB / 0.5053 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.5291, allocations: 4 kB / 0.5053 GB, free: 12.26 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009783/0.5301, allocations: 1.089 MB / 0.5064 GB, free: 11.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.5313, allocations: 284.5 kB / 0.5067 GB, free: 10.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002826/0.5341, allocations: 1.88 MB / 0.5085 GB, free: 8.891 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006913/0.5348, allocations: 1.038 MB / 0.5095 GB, free: 7.828 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.535, allocations: 34.7 kB / 0.5096 GB, free: 7.793 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.943e-05/0.5351, allocations: 79.41 kB / 0.5096 GB, free: 7.715 MB / 394.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5351, allocations: 0 / 0.5096 GB, free: 7.715 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/0.5702, allocations: 15.7 MB / 0.525 GB, free: 7.785 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.5704, allocations: 129.4 kB / 0.5251 GB, free: 7.594 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.575, allocations: 4 kB / 0.5251 GB, free: 7.59 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_DFFREG.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat