Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.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: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009876/0.0009876, allocations: 177.1 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008032/0.0008031, allocations: 74.72 kB / 262.4 MB, free: 1.699 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.36e-05/1.364e-05, allocations: 4 kB / 315.5 MB, free: 22.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07663/0.07665, allocations: 47.59 MB / 363.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2871/0.3638, allocations: 81.95 MB / 445 MB, free: 13.68 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.3641, allocations: 71.58 kB / 445.1 MB, free: 13.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05564/0.4197, allocations: 31.07 MB / 476.2 MB, free: 4.023 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4198, allocations: 0 / 476.2 MB, free: 4.023 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.944e-05/0.4198, allocations: 16 kB / 476.2 MB, free: 4.008 MB / 346.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.001279/0.4211, allocations: 1.301 MB / 477.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.4212, allocations: 11.97 kB / 477.5 MB, free: 2.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.4213, allocations: 130.5 kB / 477.6 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006709/0.422, allocations: 0.5078 MB / 478.1 MB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.4221, allocations: 19.88 kB / 478.1 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.536e-05/0.4221, allocations: 31.94 kB / 478.2 MB, free: 1.977 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005804/0.4227, allocations: 451.5 kB / 478.6 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007713/0.4235, allocations: 0.5908 MB / 479.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.4235, allocations: 0 / 479.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.651e-05/0.4236, allocations: 11.98 kB / 479.2 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.4236, allocations: 4 kB / 479.2 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.4251, allocations: 1.052 MB / 480.3 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007447/0.4259, allocations: 0.6673 MB / 480.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007042/0.4266, allocations: 0.6569 MB / 481.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.4266, allocations: 4 kB / 481.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008319/0.4274, allocations: 0.7516 MB / 482.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 1.683e-06/0.4274, allocations: 4 kB / 482.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.001552/0.429, allocations: 1.101 MB / 483.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001825/0.4292, allocations: 325 kB / 483.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/0.4311, allocations: 1.538 MB / 485.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.351e-05/0.4312, allocations: 41.7 kB / 485.3 MB, free: 11.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.4314, allocations: 238.5 kB / 485.6 MB, free: 10.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.4316, allocations: 79.02 kB / 485.7 MB, free: 10.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.534e-05/0.4316, allocations: 16 kB / 485.7 MB, free: 10.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.4318, allocations: 386.7 kB / 486.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005362/0.4323, allocations: 432 kB / 486.5 MB, free: 10 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.4329, allocations: 440 kB / 486.9 MB, free: 9.574 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.4332, allocations: 296.5 kB / 487.2 MB, free: 9.285 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.4333, allocations: 0 / 487.2 MB, free: 9.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001378/0.4346, allocations: 1.029 MB / 488.2 MB, free: 8.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000197/0.4349, allocations: 285.5 kB / 488.5 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.4349, allocations: 4 kB / 488.5 MB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.4349, allocations: 4 kB / 488.5 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.945e-05/0.4349, allocations: 7.875 kB / 488.5 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.4349, allocations: 7.984 kB / 488.5 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003244/0.4353, allocations: 47.95 kB / 488.6 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/0.4354, allocations: 147.9 kB / 488.7 MB, free: 7.707 MB / 362.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.000382/0.4358, allocations: 466.4 kB / 489.2 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.436, allocations: 138.5 kB / 489.3 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003626/0.4364, allocations: 244.1 kB / 489.5 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.4364, allocations: 4 kB / 489.5 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4364, allocations: 0 / 489.5 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4364, allocations: 0 / 489.5 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0025/0.4389, allocations: 2.009 MB / 491.6 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4389, allocations: 0 / 491.6 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.178e-05/0.4389, allocations: 4 kB / 491.6 MB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.4389, allocations: 4 kB / 491.6 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-05/0.439, allocations: 39.97 kB / 491.6 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.439, allocations: 0 / 491.6 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.439, allocations: 0 / 491.6 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.4406, allocations: 1.273 MB / 492.9 MB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009117/0.4416, allocations: 0.6786 MB / 493.6 MB, free: 2.715 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/0.4417, allocations: 59.97 kB / 493.6 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003183/0.4421, allocations: 43.91 kB / 493.7 MB, free: 2.613 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005474/0.4426, allocations: 351.6 kB / 494 MB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001658/0.4428, allocations: 163.8 kB / 494.2 MB, free: 2.109 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001609/0.4444, allocations: 1.255 MB / 495.4 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4444, allocations: 0 / 495.4 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004556/0.4449, allocations: 144 kB / 495.6 MB, free: 0.7109 MB / 362.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.0002553/0.4452, allocations: 197.7 kB / 495.7 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001892/0.4471, allocations: 1.87 MB / 497.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4471, allocations: 0 / 497.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.4483, allocations: 1.382 MB / 499 MB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.4495, allocations: 302.2 kB / 499.3 MB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/0.4533, allocations: 2.444 MB / 0.49 GB, free: 10.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.4544, allocations: 1.221 MB / 0.4912 GB, free: 9.035 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000371/0.4548, allocations: 183 kB / 0.4913 GB, free: 8.852 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.672e-05/0.4548, allocations: 35.44 kB / 0.4914 GB, free: 8.816 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.4549, allocations: 0 / 0.4914 GB, free: 8.816 MB / 378.7 MB Notification: Performance of Templates: time 0.02164/0.4765, allocations: 15.79 MB / 0.5068 GB, free: 8.609 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches