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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001629, allocations: 108 kB / 18.35 MB, free: 4.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001833, allocations: 192.2 kB / 19.29 MB, free: 3.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 47.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1021, allocations: 46.62 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRH): time 0.002885/0.105, allocations: 1.808 MB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.1071, allocations: 1.073 MB / 331.6 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.568e-05/0.1072, allocations: 4 kB / 331.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.1074, allocations: 31.72 kB / 331.6 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.1076, allocations: 175.5 kB / 331.8 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.108, allocations: 139.8 kB / 331.9 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006057/0.1086, allocations: 0.6163 MB / 332.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002074/0.1088, allocations: 110 kB / 332.7 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.1099, allocations: 1.263 MB / 333.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.1102, allocations: 231.1 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.1103, allocations: 40 kB / 334.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.1105, allocations: 44 kB / 334.2 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.1107, allocations: 251 kB / 334.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003555/0.111, allocations: 448.9 kB / 334.9 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009741/0.112, allocations: 1.456 MB / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.112, allocations: 0 / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.112, allocations: 0 / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.112, allocations: 4 kB / 336.4 MB, free: 12.05 MB / 286.1 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.001592/0.1136, allocations: 1.679 MB / 338.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.1137, allocations: 8.031 kB / 338.1 MB, free: 10.26 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.1139, allocations: 131.4 kB / 338.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005879/0.1145, allocations: 0.5751 MB / 338.8 MB, free: 9.508 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.076e-05/0.1145, allocations: 24.38 kB / 338.8 MB, free: 9.484 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.015e-05/0.1146, allocations: 28.38 kB / 338.8 MB, free: 9.457 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.1156, allocations: 0.6185 MB / 339.4 MB, free: 8.832 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1156, allocations: 3.984 kB / 339.4 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.776e-05/0.1157, allocations: 20 kB / 339.5 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1157, allocations: 0 / 339.5 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006667/0.1164, allocations: 463.7 kB / 339.9 MB, free: 8.355 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.118, allocations: 1.076 MB / 341 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008682/0.1189, allocations: 0.6897 MB / 341.7 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008055/0.1197, allocations: 0.6802 MB / 342.4 MB, free: 5.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.1197, allocations: 8 kB / 342.4 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000952/0.1207, allocations: 0.7591 MB / 343.1 MB, free: 5.035 MB / 286.1 MB Notification: Performance of pre-optimization done (n=36): time 2.074e-06/0.1207, allocations: 0 / 343.1 MB, free: 5.035 MB / 286.1 MB Notification: Performance of matching and sorting (n=36): time 0.002665/0.1233, allocations: 1.864 MB / 345 MB, free: 3.113 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001975/0.1235, allocations: 329 kB / 345.3 MB, free: 2.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002352/0.1259, allocations: 1.825 MB / 347.1 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.454e-05/0.126, allocations: 49.69 kB / 347.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.1262, allocations: 238.4 kB / 347.4 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.1264, allocations: 87 kB / 347.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.1267, allocations: 240.7 kB / 347.7 MB, free: 272 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.1269, allocations: 374.7 kB / 348.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006304/0.1275, allocations: 443.7 kB / 348.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006361/0.1282, allocations: 478.3 kB / 349 MB, free: 14.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.1293, allocations: 1.165 MB / 350.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.1294, allocations: 3.938 kB / 350.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001754/0.1311, allocations: 1.357 MB / 351.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.1313, allocations: 293.5 kB / 351.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1313, allocations: 0 / 351.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1314, allocations: 0 / 351.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.967e-05/0.1314, allocations: 7.984 kB / 351.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1314, allocations: 8.062 kB / 351.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.1317, allocations: 39.84 kB / 351.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.1319, allocations: 127.9 kB / 352 MB, free: 11.77 MB / 302.1 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,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.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.clock,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,set.y,data_1.y,reset.y,data_0.y,clock.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001069/0.133, allocations: 0.9986 MB / 353 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.1331, allocations: 138.3 kB / 353.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000365/0.1335, allocations: 247.6 kB / 353.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1335, allocations: 3.984 kB / 353.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.1335, allocations: 7.984 kB / 353.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009273/0.1344, allocations: 0.6708 MB / 354.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/0.1346, allocations: 59.97 kB / 354.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.1349, allocations: 31.97 kB / 354.1 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005192/0.1354, allocations: 323.8 kB / 354.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002254/0.1377, allocations: 2.009 MB / 356.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002116/0.1398, allocations: 1.746 MB / 358.2 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009557/0.1408, allocations: 0.8836 MB / 359.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001823/0.1426, allocations: 1.333 MB / 360.4 MB, free: 3.027 MB / 302.1 MB Notification: Performance of Backend: time 4.81e-07/0.1426, allocations: 0 / 360.4 MB, free: 3.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.1445, allocations: 1.54 MB / 362 MB, free: 1.379 MB / 302.1 MB Notification: Performance of SimCode: time 0.004435/0.149, allocations: 3.318 MB / 365.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of Templates: time 0.179/0.328, allocations: 15.64 MB / 380.9 MB, free: 54.52 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches