Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.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: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008326/0.0008324, allocations: 85.09 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002575/0.0002575, allocations: 7.938 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.232, allocations: 50.41 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1008/0.3329, allocations: 83.36 MB / 484.9 MB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.3332, allocations: 68.66 kB / 484.9 MB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2932/0.6263, allocations: 31.4 MB / 0.5042 GB, free: 95.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.6264, allocations: 1.031 kB / 0.5042 GB, free: 95.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.062e-05/0.6264, allocations: 13.62 kB / 0.5042 GB, free: 95.27 MB / 378.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.00199/0.6284, allocations: 1.502 MB / 0.5057 GB, free: 94.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.6285, allocations: 8.344 kB / 0.5057 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002608/0.6288, allocations: 132.5 kB / 0.5058 GB, free: 94.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008728/0.6296, allocations: 0.5145 MB / 0.5063 GB, free: 93.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.362e-05/0.6297, allocations: 24.44 kB / 0.5064 GB, free: 93.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-05/0.6298, allocations: 27.56 kB / 0.5064 GB, free: 93.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.6313, allocations: 0.6319 MB / 0.507 GB, free: 93.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.6313, allocations: 7.734 kB / 0.507 GB, free: 93.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.891e-05/0.6314, allocations: 13.38 kB / 0.507 GB, free: 93.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.6314, allocations: 7.828 kB / 0.507 GB, free: 93.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008856/0.6323, allocations: 467 kB / 0.5075 GB, free: 93.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.6345, allocations: 1.092 MB / 0.5085 GB, free: 93.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008344/0.6354, allocations: 0.6925 MB / 0.5092 GB, free: 93.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.6354, allocations: 0 / 0.5092 GB, free: 93.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001005/0.6364, allocations: 0.7713 MB / 0.51 GB, free: 93.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.675e-06/0.6364, allocations: 0 / 0.51 GB, free: 93.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002687/0.6391, allocations: 2.133 MB / 0.5121 GB, free: 92.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000166/0.6393, allocations: 323.5 kB / 0.5124 GB, free: 92.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002342/0.6416, allocations: 1.611 MB / 0.5139 GB, free: 91.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.926e-05/0.6417, allocations: 49.75 kB / 0.514 GB, free: 91.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/0.642, allocations: 231.8 kB / 0.5142 GB, free: 91.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.6421, allocations: 82.83 kB / 0.5143 GB, free: 91.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.965e-05/0.6422, allocations: 19.12 kB / 0.5143 GB, free: 91.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.6423, allocations: 391.1 kB / 0.5147 GB, free: 91.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006133/0.6429, allocations: 450.8 kB / 0.5151 GB, free: 91.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005585/0.6435, allocations: 480.1 kB / 0.5156 GB, free: 90.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005315/0.6441, allocations: 0.59 MB / 0.5161 GB, free: 90.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6441, allocations: 0 / 0.5161 GB, free: 90.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001541/0.6456, allocations: 1.357 MB / 0.5175 GB, free: 89.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001699/0.6458, allocations: 294.1 kB / 0.5177 GB, free: 89.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.6458, allocations: 0 / 0.5177 GB, free: 89.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.6458, allocations: 3.562 kB / 0.5177 GB, free: 89.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.081e-05/0.6459, allocations: 11.3 kB / 0.5178 GB, free: 89.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.6459, allocations: 3.938 kB / 0.5178 GB, free: 89.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.6463, allocations: 42.95 kB / 0.5178 GB, free: 89.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.6465, allocations: 155.3 kB / 0.5179 GB, free: 89.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 43 ($PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * 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.001148/0.6476, allocations: 0.992 MB / 0.5189 GB, free: 89.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.6478, allocations: 138.2 kB / 0.519 GB, free: 88.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003605/0.6481, allocations: 242.9 kB / 0.5193 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.6482, allocations: 3.688 kB / 0.5193 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.6482, allocations: 0 / 0.5193 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.6482, allocations: 3.188 kB / 0.5193 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00266/0.6508, allocations: 2.423 MB / 0.5217 GB, free: 87.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.6509, allocations: 0 / 0.5217 GB, free: 87.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.789e-05/0.6509, allocations: 6 kB / 0.5217 GB, free: 87.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.6509, allocations: 0 / 0.5217 GB, free: 87.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.813e-05/0.651, allocations: 43.28 kB / 0.5217 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.651, allocations: 0 / 0.5217 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.651, allocations: 0 / 0.5217 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/0.6528, allocations: 1.648 MB / 0.5233 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009643/0.6537, allocations: 0.6744 MB / 0.524 GB, free: 85.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.6539, allocations: 57.7 kB / 0.524 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.6542, allocations: 42.83 kB / 0.5241 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/0.6547, allocations: 350.6 kB / 0.5244 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.6548, allocations: 159.9 kB / 0.5246 GB, free: 85.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001551/0.6564, allocations: 1.33 MB / 0.5259 GB, free: 84.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6564, allocations: 0 / 0.5259 GB, free: 84.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005099/0.6569, allocations: 159.4 kB / 0.526 GB, free: 84.22 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * 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.0002339/0.6572, allocations: 191.4 kB / 0.5262 GB, free: 84.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.6588, allocations: 1.926 MB / 0.5281 GB, free: 82.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6588, allocations: 3.844 kB / 0.5281 GB, free: 82.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009493/0.6598, allocations: 1.407 MB / 0.5294 GB, free: 80.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009865/0.6607, allocations: 300.5 kB / 0.5297 GB, free: 80.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/0.6644, allocations: 3.103 MB / 0.5328 GB, free: 77.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007797/0.6652, allocations: 1.215 MB / 0.5339 GB, free: 76.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003346/0.6655, allocations: 190.9 kB / 0.5341 GB, free: 76.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.633e-05/0.6656, allocations: 27.44 kB / 0.5342 GB, free: 76.45 MB / 378.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6656, allocations: 4 kB / 0.5342 GB, free: 76.44 MB / 378.7 MB Notification: Performance of Templates: time 0.02081/0.6864, allocations: 16.7 MB / 0.5505 GB, free: 59.65 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches