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.001336/0.001336, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.436/1.436, allocations: 221.3 MB / 235.5 MB, free: 2.934 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.0007912/0.0007913, allocations: 93.84 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.915e-05/1.917e-05, allocations: 0 / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08526/0.0853, allocations: 50.41 MB / 394.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4113/0.4966, allocations: 83.29 MB / 477.5 MB, free: 4.234 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.4969, allocations: 71.8 kB / 477.6 MB, free: 4.168 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09352/0.5905, allocations: 31.55 MB / 0.4972 GB, free: 4.664 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.5905, allocations: 4 kB / 0.4972 GB, free: 4.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.354e-05/0.5906, allocations: 16 kB / 0.4972 GB, free: 4.645 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.001995/0.5926, allocations: 1.299 MB / 0.4985 GB, free: 3.246 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.5927, allocations: 8.031 kB / 0.4985 GB, free: 3.238 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002898/0.593, allocations: 138.5 kB / 0.4986 GB, free: 3.102 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.5941, allocations: 0.5129 MB / 0.4992 GB, free: 2.539 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.935e-05/0.5942, allocations: 20 kB / 0.4992 GB, free: 2.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.5943, allocations: 28 kB / 0.4992 GB, free: 2.492 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.5959, allocations: 0.6299 MB / 0.4998 GB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.5959, allocations: 4 kB / 0.4998 GB, free: 1.852 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.596, allocations: 15.98 kB / 0.4998 GB, free: 1.836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.596, allocations: 4 kB / 0.4998 GB, free: 1.832 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.5971, allocations: 463.7 kB / 0.5003 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002749/0.5999, allocations: 1.088 MB / 0.5013 GB, free: 240 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.6013, allocations: 0.6898 MB / 0.502 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.6026, allocations: 0.6767 MB / 0.5027 GB, free: 14.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.101e-05/0.6027, allocations: 0 / 0.5027 GB, free: 14.86 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001605/0.6043, allocations: 0.763 MB / 0.5034 GB, free: 14.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=36): time 3.196e-06/0.6043, allocations: 0 / 0.5034 GB, free: 14.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.003229/0.6075, allocations: 1.419 MB / 0.5048 GB, free: 12.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002868/0.6078, allocations: 325 kB / 0.5051 GB, free: 12.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003741/0.6116, allocations: 1.598 MB / 0.5067 GB, free: 10.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001347/0.6118, allocations: 41.7 kB / 0.5067 GB, free: 10.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003592/0.6121, allocations: 242.4 kB / 0.5069 GB, free: 10.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.6124, allocations: 87.09 kB / 0.507 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.227e-05/0.6124, allocations: 12 kB / 0.507 GB, free: 10.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002654/0.6127, allocations: 382.7 kB / 0.5074 GB, free: 9.816 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.6138, allocations: 448 kB / 0.5078 GB, free: 9.375 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.6148, allocations: 456.1 kB / 0.5083 GB, free: 8.93 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009847/0.6158, allocations: 0.5795 MB / 0.5088 GB, free: 8.301 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.6158, allocations: 3.953 kB / 0.5088 GB, free: 8.297 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002847/0.6187, allocations: 1.358 MB / 0.5102 GB, free: 6.887 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003076/0.619, allocations: 286.5 kB / 0.5104 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.619, allocations: 0 / 0.5104 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.619, allocations: 3.938 kB / 0.5104 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.362e-05/0.6191, allocations: 12 kB / 0.5105 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.6191, allocations: 0 / 0.5105 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006099/0.6197, allocations: 39.97 kB / 0.5105 GB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002875/0.62, allocations: 155.9 kB / 0.5106 GB, free: 6.352 MB / 394.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: 43 ($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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,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 () * 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.0005807/0.6206, allocations: 466.4 kB / 0.5111 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.6209, allocations: 138.4 kB / 0.5112 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008309/0.6217, allocations: 251.7 kB / 0.5115 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.6218, allocations: 4 kB / 0.5115 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.6218, allocations: 0 / 0.5115 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.6218, allocations: 0 / 0.5115 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004867/0.6267, allocations: 2.395 MB / 0.5138 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.6267, allocations: 0 / 0.5138 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.649e-05/0.6267, allocations: 0 / 0.5138 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.6267, allocations: 4 kB / 0.5138 GB, free: 2.938 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.6269, allocations: 39.97 kB / 0.5138 GB, free: 2.898 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.566e-06/0.6269, allocations: 7.938 kB / 0.5138 GB, free: 2.891 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.6269, allocations: 3.938 kB / 0.5139 GB, free: 2.887 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003227/0.6302, allocations: 1.622 MB / 0.5154 GB, free: 1.195 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001752/0.6319, allocations: 0.6785 MB / 0.5161 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002924/0.6322, allocations: 67.95 kB / 0.5162 GB, free: 440 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005841/0.6328, allocations: 39.97 kB / 0.5162 GB, free: 400 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008533/0.6337, allocations: 351.6 kB / 0.5165 GB, free: 48 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003007/0.634, allocations: 156.2 kB / 0.5167 GB, free: 15.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003169/0.6372, allocations: 1.319 MB / 0.518 GB, free: 14.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.6372, allocations: 0 / 0.518 GB, free: 14.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008933/0.6381, allocations: 144 kB / 0.5181 GB, free: 14.43 MB / 410.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) * 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.0003749/0.6385, allocations: 201.6 kB / 0.5183 GB, free: 14.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003208/0.6417, allocations: 1.912 MB / 0.5202 GB, free: 12.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.6418, allocations: 0 / 0.5202 GB, free: 12.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/0.6438, allocations: 1.39 MB / 0.5215 GB, free: 10.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/0.6456, allocations: 307.7 kB / 0.5218 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005861/0.6515, allocations: 2.476 MB / 0.5242 GB, free: 7.918 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001612/0.6531, allocations: 1.213 MB / 0.5254 GB, free: 6.676 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005352/0.6537, allocations: 195 kB / 0.5256 GB, free: 6.488 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.086e-05/0.6538, allocations: 27.44 kB / 0.5256 GB, free: 6.461 MB / 410.7 MB Notification: Performance of SimCode: time 6.92e-07/0.6538, allocations: 4 kB / 0.5256 GB, free: 6.457 MB / 410.7 MB Notification: Performance of Templates: time 0.03481/0.6886, allocations: 16.65 MB / 0.5419 GB, free: 5.484 MB / 426.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