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.0009855/0.0009855, allocations: 175.4 kB / 8.344 MB, free: 0.7305 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.273/1.273, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008092/0.0008091, allocations: 87.5 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.893e-05/1.896e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.09852, allocations: 50.41 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2873/0.3859, allocations: 82.63 MB / 470.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.3861, allocations: 67.95 kB / 470.2 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05785/0.444, allocations: 31.37 MB / 0.4898 GB, free: 12.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4441, allocations: 0 / 0.4898 GB, free: 12.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.651e-05/0.4441, allocations: 12 kB / 0.4898 GB, free: 12.83 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.001386/0.4455, allocations: 1.295 MB / 0.491 GB, free: 11.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.4455, allocations: 15.97 kB / 0.4911 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.4457, allocations: 134.4 kB / 0.4912 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006699/0.4464, allocations: 0.509 MB / 0.4917 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.384e-05/0.4465, allocations: 19.98 kB / 0.4917 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.598e-05/0.4466, allocations: 28 kB / 0.4917 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005976/0.4472, allocations: 443.8 kB / 0.4922 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007914/0.448, allocations: 0.5987 MB / 0.4927 GB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.448, allocations: 0 / 0.4927 GB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.704e-05/0.4481, allocations: 16 kB / 0.4928 GB, free: 9.625 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.4481, allocations: 3.953 kB / 0.4928 GB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.4496, allocations: 1.047 MB / 0.4938 GB, free: 8.531 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007201/0.4503, allocations: 0.6702 MB / 0.4944 GB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007093/0.4511, allocations: 0.6649 MB / 0.4951 GB, free: 7.184 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.4511, allocations: 7.938 kB / 0.4951 GB, free: 7.176 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008537/0.452, allocations: 0.7592 MB / 0.4958 GB, free: 6.379 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.753e-06/0.452, allocations: 0 / 0.4958 GB, free: 6.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001562/0.4535, allocations: 1.105 MB / 0.4969 GB, free: 5.266 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001975/0.4538, allocations: 321 kB / 0.4972 GB, free: 4.887 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002051/0.4558, allocations: 1.538 MB / 0.4987 GB, free: 3.336 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.089e-05/0.4559, allocations: 45.69 kB / 0.4988 GB, free: 3.285 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.4561, allocations: 230.5 kB / 0.499 GB, free: 3.055 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.4563, allocations: 87.14 kB / 0.4991 GB, free: 2.969 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-05/0.4563, allocations: 16 kB / 0.4991 GB, free: 2.953 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.4565, allocations: 378.7 kB / 0.4994 GB, free: 2.574 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005331/0.457, allocations: 432 kB / 0.4999 GB, free: 2.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005131/0.4575, allocations: 436 kB / 0.5003 GB, free: 1.723 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.4579, allocations: 300.2 kB / 0.5006 GB, free: 1.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4579, allocations: 0 / 0.5006 GB, free: 1.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001471/0.4594, allocations: 1.025 MB / 0.5016 GB, free: 408 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002244/0.4596, allocations: 289.5 kB / 0.5018 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.4597, allocations: 0 / 0.5018 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4597, allocations: 4 kB / 0.5018 GB, free: 64 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.56e-05/0.4597, allocations: 7.938 kB / 0.5018 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.4597, allocations: 0 / 0.5018 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003849/0.4601, allocations: 39.97 kB / 0.5019 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001981/0.4603, allocations: 151.9 kB / 0.502 GB, free: 15.87 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.0004429/0.4608, allocations: 462.4 kB / 0.5025 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.461, allocations: 146.3 kB / 0.5026 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006229/0.4616, allocations: 252 kB / 0.5029 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4616, allocations: 4 kB / 0.5029 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.4616, allocations: 0 / 0.5029 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4616, allocations: 0 / 0.5029 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.4643, allocations: 2.005 MB / 0.5048 GB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4643, allocations: 0 / 0.5048 GB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.498e-05/0.4643, allocations: 7.953 kB / 0.5048 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.4643, allocations: 0 / 0.5048 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.225e-05/0.4644, allocations: 39.97 kB / 0.5049 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.4644, allocations: 4 kB / 0.5049 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4644, allocations: 0 / 0.5049 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.466, allocations: 1.269 MB / 0.5061 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009427/0.467, allocations: 0.6824 MB / 0.5068 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.4672, allocations: 67.91 kB / 0.5068 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.4675, allocations: 35.97 kB / 0.5069 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005287/0.468, allocations: 355.6 kB / 0.5072 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/0.4682, allocations: 159.8 kB / 0.5074 GB, free: 10.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001704/0.4699, allocations: 1.255 MB / 0.5086 GB, free: 8.996 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4699, allocations: 0 / 0.5086 GB, free: 8.996 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000509/0.4705, allocations: 148 kB / 0.5087 GB, free: 8.852 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: 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.0002409/0.4707, allocations: 190.4 kB / 0.5089 GB, free: 8.656 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001873/0.4726, allocations: 1.87 MB / 0.5107 GB, free: 6.688 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4726, allocations: 0 / 0.5107 GB, free: 6.688 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.4738, allocations: 1.372 MB / 0.5121 GB, free: 5.219 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.475, allocations: 315.8 kB / 0.5124 GB, free: 4.918 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.4785, allocations: 2.447 MB / 0.5148 GB, free: 2.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.4795, allocations: 1.216 MB / 0.516 GB, free: 1.188 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000348/0.4799, allocations: 195 kB / 0.5161 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.4799, allocations: 31.44 kB / 0.5162 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.48, allocations: 0 / 0.5162 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of Templates: time 0.02122/0.5012, allocations: 15.78 MB / 0.5316 GB, free: 0.832 MB / 410.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