Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 181.8 kB / 8.133 MB, free: 2.168 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.142/1.142, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009143/0.0009143, allocations: 102.2 kB / 280.8 MB, free: 1.305 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.123e-06/7.153e-06, allocations: 4 kB / 336.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1779, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08279/0.2607, allocations: 82.3 MB / 469.2 MB, free: 4.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001855/0.2609, allocations: 67.91 kB / 469.3 MB, free: 4.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0528/0.3137, allocations: 27.56 MB / 496.8 MB, free: 9.016 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.3138, allocations: 8 kB / 496.8 MB, free: 9.008 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0009911/0.3148, allocations: 1.004 MB / 497.8 MB, free: 7.914 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.3148, allocations: 8.031 kB / 497.9 MB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.315, allocations: 90.97 kB / 497.9 MB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006186/0.3156, allocations: 435.4 kB / 498.4 MB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.3157, allocations: 19.98 kB / 498.4 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.987e-05/0.3157, allocations: 20 kB / 498.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005044/0.3163, allocations: 360.1 kB / 498.8 MB, free: 6.953 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007152/0.317, allocations: 0.4944 MB / 499.3 MB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.317, allocations: 0 / 499.3 MB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-05/0.3171, allocations: 8 kB / 499.3 MB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.3171, allocations: 3.984 kB / 499.3 MB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.3184, allocations: 0.8521 MB / 0.4884 GB, free: 5.551 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005708/0.3189, allocations: 0.4906 MB / 0.4889 GB, free: 5.051 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005362/0.3195, allocations: 496.7 kB / 0.4893 GB, free: 4.562 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.3195, allocations: 4 kB / 0.4894 GB, free: 4.559 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006665/0.3202, allocations: 0.6199 MB / 0.49 GB, free: 3.898 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.663e-06/0.3202, allocations: 3.938 kB / 0.49 GB, free: 3.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001104/0.3213, allocations: 0.7805 MB / 0.4907 GB, free: 3.109 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.3215, allocations: 275.3 kB / 0.491 GB, free: 2.785 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.3227, allocations: 1.004 MB / 0.492 GB, free: 1.777 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.77e-05/0.3228, allocations: 41.64 kB / 0.492 GB, free: 1.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.47e-05/0.3229, allocations: 117.9 kB / 0.4921 GB, free: 1.609 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.838e-05/0.323, allocations: 71.17 kB / 0.4922 GB, free: 1.539 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.665e-05/0.323, allocations: 8 kB / 0.4922 GB, free: 1.531 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3232, allocations: 350.8 kB / 0.4925 GB, free: 1.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.3236, allocations: 348.2 kB / 0.4929 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.3241, allocations: 356.4 kB / 0.4932 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003432/0.3244, allocations: 252.9 kB / 0.4934 GB, free: 252 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3244, allocations: 0 / 0.4934 GB, free: 252 kB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.09296/0.4174, allocations: 0.734 MB / 0.4942 GB, free: 135.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.4175, allocations: 3.969 kB / 0.4942 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.4175, allocations: 3.938 kB / 0.4942 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.4175, allocations: 0 / 0.4942 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.98e-05/0.4175, allocations: 3.969 kB / 0.4942 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.4175, allocations: 5.438 kB / 0.4942 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.4179, allocations: 33.66 kB / 0.4942 GB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.418, allocations: 152.4 kB / 0.4944 GB, free: 135.4 MB / 378.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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.0002826/0.4183, allocations: 396.4 kB / 0.4947 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.4184, allocations: 86.81 kB / 0.4948 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003082/0.4187, allocations: 150.4 kB / 0.495 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4188, allocations: 1.859 kB / 0.495 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4188, allocations: 0 / 0.495 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4188, allocations: 9.891 kB / 0.495 GB, free: 135.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.4203, allocations: 1.479 MB / 0.4964 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4203, allocations: 7.828 kB / 0.4964 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.438e-06/0.4204, allocations: 0 / 0.4964 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.4204, allocations: 0 / 0.4964 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-05/0.4204, allocations: 40.47 kB / 0.4965 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.4204, allocations: 0.8438 kB / 0.4965 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4205, allocations: 3.438 kB / 0.4965 GB, free: 134.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009339/0.4214, allocations: 0.9417 MB / 0.4974 GB, free: 134.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007106/0.4221, allocations: 0.5748 MB / 0.4979 GB, free: 134.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001732/0.4223, allocations: 61.91 kB / 0.498 GB, free: 134.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002972/0.4226, allocations: 38.31 kB / 0.498 GB, free: 134.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003331/0.4229, allocations: 241.3 kB / 0.4983 GB, free: 134.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/0.4231, allocations: 162.3 kB / 0.4984 GB, free: 134.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008014/0.4239, allocations: 0.8294 MB / 0.4992 GB, free: 134.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004103/0.4243, allocations: 107.4 kB / 0.4993 GB, free: 134.2 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.0001896/0.4245, allocations: 183.7 kB / 0.4995 GB, free: 134.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009765/0.4255, allocations: 1.095 MB / 0.5006 GB, free: 133.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4255, allocations: 0 / 0.5006 GB, free: 133.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006626/0.4262, allocations: 0.9191 MB / 0.5015 GB, free: 133.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009727/0.4272, allocations: 270.6 kB / 0.5017 GB, free: 133.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.4292, allocations: 1.732 MB / 0.5034 GB, free: 133.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005132/0.4297, allocations: 1.058 MB / 0.5045 GB, free: 132.5 MB / 378.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4297, allocations: 0 / 0.5045 GB, free: 132.5 MB / 378.7 MB Notification: Performance of Templates: time 0.01598/0.4457, allocations: 13 MB / 0.5172 GB, free: 130.4 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREG/DFFREG.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches