Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.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.DFFREGL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",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.001577/0.001576, allocations: 182.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001135/0.001134, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.973e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4102/0.5132, allocations: 82.16 MB / 451.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.5135, allocations: 65.59 kB / 451.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.142/0.6555, allocations: 37.71 MB / 489.1 MB, free: 7.219 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.6555, allocations: 0 / 489.1 MB, free: 7.219 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.539e-05/0.6556, allocations: 15.94 kB / 489.1 MB, free: 7.203 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.002382/0.658, allocations: 1.004 MB / 490.1 MB, free: 6.109 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.574e-05/0.6581, allocations: 12.03 kB / 490.1 MB, free: 6.098 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002784/0.6584, allocations: 54.55 kB / 490.2 MB, free: 6.035 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003319/0.6588, allocations: 90.97 kB / 490.3 MB, free: 5.945 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.6603, allocations: 427.5 kB / 490.7 MB, free: 5.488 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.6605, allocations: 23.98 kB / 490.7 MB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/0.6607, allocations: 20 kB / 490.7 MB, free: 5.445 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/0.6627, allocations: 0.4983 MB / 491.2 MB, free: 4.938 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.6628, allocations: 0 / 491.2 MB, free: 4.938 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001635/0.663, allocations: 16 kB / 491.3 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.663, allocations: 0 / 491.3 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.6645, allocations: 364.1 kB / 491.6 MB, free: 4.566 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/0.668, allocations: 0.8599 MB / 492.5 MB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001809/0.6698, allocations: 0.5023 MB / 493 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001681/0.6716, allocations: 0.4928 MB / 493.5 MB, free: 2.648 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.6716, allocations: 4 kB / 493.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002123/0.6738, allocations: 0.647 MB / 494.1 MB, free: 1.957 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 5.531e-06/0.6738, allocations: 0 / 494.1 MB, free: 1.957 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.004397/0.6782, allocations: 1.179 MB / 495.3 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003366/0.6786, allocations: 283.3 kB / 495.6 MB, free: 408 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004127/0.6828, allocations: 1.023 MB / 496.6 MB, free: 15.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003006/0.6832, allocations: 49.64 kB / 496.6 MB, free: 15.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.6834, allocations: 200.3 kB / 496.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002718/0.6837, allocations: 75.06 kB / 496.9 MB, free: 15.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.6839, allocations: 12 kB / 496.9 MB, free: 15.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.6841, allocations: 330.8 kB / 497.3 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.6855, allocations: 348.2 kB / 497.6 MB, free: 14.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.687, allocations: 360.4 kB / 497.9 MB, free: 14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.6884, allocations: 492.9 kB / 498.4 MB, free: 13.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.6885, allocations: 4 kB / 498.4 MB, free: 13.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.004064/0.6926, allocations: 1.106 MB / 499.5 MB, free: 12.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004056/0.693, allocations: 251.8 kB / 499.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.6931, allocations: 0 / 499.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.956e-05/0.6931, allocations: 0 / 499.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.611e-05/0.6932, allocations: 4 kB / 499.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.6932, allocations: 0 / 499.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009622/0.6942, allocations: 39.88 kB / 499.8 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004067/0.6946, allocations: 156.2 kB / 500 MB, free: 11.84 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.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.0008362/0.6955, allocations: 406.9 kB / 0.4886 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003547/0.6959, allocations: 91.02 kB / 0.4887 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007667/0.6967, allocations: 147.8 kB / 0.4889 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.6967, allocations: 0 / 0.4889 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.6967, allocations: 0 / 0.4889 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.6967, allocations: 0 / 0.4889 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00672/0.7035, allocations: 1.969 MB / 0.4908 GB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.7035, allocations: 0 / 0.4908 GB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.057e-05/0.7036, allocations: 8 kB / 0.4908 GB, free: 9.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.45e-05/0.7036, allocations: 4 kB / 0.4908 GB, free: 9.066 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/0.7038, allocations: 35.97 kB / 0.4908 GB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.7039, allocations: 0 / 0.4908 GB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.7039, allocations: 7.984 kB / 0.4908 GB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004762/0.7087, allocations: 1.373 MB / 0.4922 GB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002533/0.7113, allocations: 0.5581 MB / 0.4927 GB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005049/0.7118, allocations: 59.95 kB / 0.4928 GB, free: 6.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009749/0.7128, allocations: 35.97 kB / 0.4928 GB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001097/0.714, allocations: 239.7 kB / 0.4931 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004345/0.7144, allocations: 155.9 kB / 0.4932 GB, free: 6.527 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003565/0.718, allocations: 0.8578 MB / 0.494 GB, free: 5.676 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.774e-06/0.7181, allocations: 4 kB / 0.494 GB, free: 5.672 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001327/0.7194, allocations: 124 kB / 0.4942 GB, free: 5.551 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: 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.005789/0.7253, allocations: 2.006 MB / 0.4961 GB, free: 3.473 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00461/0.7299, allocations: 1.515 MB / 0.4976 GB, free: 1.871 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.73, allocations: 0 / 0.4976 GB, free: 1.871 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002914/0.7329, allocations: 1.113 MB / 0.4987 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/0.7363, allocations: 284.2 kB / 0.499 GB, free: 404 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008894/0.7453, allocations: 1.964 MB / 0.5009 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001868/0.7472, allocations: 1.035 MB / 0.5019 GB, free: 13.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002496/0.7475, allocations: 79.34 kB / 0.502 GB, free: 13.24 MB / 394.7 MB Notification: Performance of SimCode: time 1.893e-06/0.7475, allocations: 0 / 0.502 GB, free: 13.24 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.768/3.516, allocations: 9.472 MB / 0.5112 GB, free: 3.613 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGL_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_DFFREGL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat