Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX") [: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.001732/0.001732, allocations: 186 kB / 8.136 MB, free: 2.684 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 221.4 MB / 229.9 MB, free: 7.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.0009116, allocations: 90.02 kB / 280.8 MB, free: 5.125 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 8.506e-06/8.526e-06, allocations: 4 kB / 336.5 MB, free: 13.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2302, allocations: 50.4 MB / 386.9 MB, free: 40.38 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08934/0.3196, allocations: 82.88 MB / 469.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001681/0.3198, allocations: 71.91 kB / 469.9 MB, free: 7.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.2352/0.555, allocations: 42.68 MB / 0.5005 GB, free: 100.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.555, allocations: 7.75 kB / 0.5005 GB, free: 100.8 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0005787/0.5556, allocations: 0.9497 MB / 0.5015 GB, free: 100.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.5557, allocations: 8.312 kB / 0.5015 GB, free: 100.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.5558, allocations: 77.12 kB / 0.5016 GB, free: 100.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004114/0.5562, allocations: 379.1 kB / 0.5019 GB, free: 99.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.5562, allocations: 12.97 kB / 0.5019 GB, free: 99.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.449e-05/0.5563, allocations: 20.78 kB / 0.5019 GB, free: 99.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000247/0.5566, allocations: 138.1 kB / 0.5021 GB, free: 99.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003801/0.5569, allocations: 276.2 kB / 0.5023 GB, free: 99.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.557, allocations: 0.875 kB / 0.5023 GB, free: 99.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.369e-05/0.557, allocations: 18.28 kB / 0.5024 GB, free: 99.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.557, allocations: 4.219 kB / 0.5024 GB, free: 99.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.5581, allocations: 0.7551 MB / 0.5031 GB, free: 99.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.5584, allocations: 199.7 kB / 0.5033 GB, free: 99.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.5587, allocations: 178.8 kB / 0.5035 GB, free: 99.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.5587, allocations: 0 / 0.5035 GB, free: 99.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003151/0.559, allocations: 395.1 kB / 0.5038 GB, free: 99.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 1.413e-06/0.559, allocations: 0 / 0.5038 GB, free: 99.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.0006403/0.5597, allocations: 461.1 kB / 0.5043 GB, free: 99.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.5597, allocations: 282.3 kB / 0.5045 GB, free: 98.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007809/0.5605, allocations: 0.7925 MB / 0.5053 GB, free: 98.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.476e-05/0.5606, allocations: 37.45 kB / 0.5054 GB, free: 98.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.155e-05/0.5606, allocations: 106.4 kB / 0.5055 GB, free: 98.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.137e-05/0.5607, allocations: 62.59 kB / 0.5055 GB, free: 98.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-05/0.5607, allocations: 8.594 kB / 0.5055 GB, free: 98.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.443e-05/0.5608, allocations: 336.9 kB / 0.5059 GB, free: 98.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.561, allocations: 134.3 kB / 0.506 GB, free: 98.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.5612, allocations: 151 kB / 0.5061 GB, free: 98.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.5614, allocations: 124.1 kB / 0.5062 GB, free: 98.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.5614, allocations: 3.938 kB / 0.5062 GB, free: 98.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005554/0.5619, allocations: 422.2 kB / 0.5066 GB, free: 98.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/0.562, allocations: 7.906 kB / 0.5067 GB, free: 98.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.562, allocations: 0 / 0.5067 GB, free: 98.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.562, allocations: 0 / 0.5067 GB, free: 98.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.531e-05/0.562, allocations: 3.969 kB / 0.5067 GB, free: 98.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.738e-06/0.562, allocations: 3.969 kB / 0.5067 GB, free: 98.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.5623, allocations: 38.42 kB / 0.5067 GB, free: 98.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/0.5625, allocations: 263 kB / 0.5069 GB, free: 98.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * 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.0002112/0.5627, allocations: 381.2 kB / 0.5073 GB, free: 97.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-05/0.5628, allocations: 74.78 kB / 0.5074 GB, free: 97.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000177/0.563, allocations: 131.2 kB / 0.5075 GB, free: 97.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.563, allocations: 3.969 kB / 0.5075 GB, free: 97.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.563, allocations: 4.266 kB / 0.5075 GB, free: 97.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.563, allocations: 4 kB / 0.5075 GB, free: 97.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.5641, allocations: 1.01 MB / 0.5085 GB, free: 97.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.5641, allocations: 0 / 0.5085 GB, free: 97.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.385e-05/0.5641, allocations: 3.094 kB / 0.5085 GB, free: 97.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.5641, allocations: 3.797 kB / 0.5085 GB, free: 97.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.761e-05/0.5642, allocations: 46.19 kB / 0.5086 GB, free: 97.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.5642, allocations: 3.938 kB / 0.5086 GB, free: 97.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.5642, allocations: 0 / 0.5086 GB, free: 97.22 MB / 382.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006384/0.5648, allocations: 0.5858 MB / 0.5091 GB, free: 97.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005495/0.5654, allocations: 437.8 kB / 0.5096 GB, free: 96.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.5655, allocations: 17.53 kB / 0.5096 GB, free: 96.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.5658, allocations: 31.72 kB / 0.5096 GB, free: 96.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.566, allocations: 66.5 kB / 0.5097 GB, free: 96.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/0.5662, allocations: 269.1 kB / 0.5099 GB, free: 96.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 0.0006426/0.5668, allocations: 0.6551 MB / 0.5106 GB, free: 96.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.5672, allocations: 77.19 kB / 0.5106 GB, free: 96.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * 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.0001576/0.5673, allocations: 135.8 kB / 0.5108 GB, free: 96.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005534/0.5679, allocations: 0.5594 MB / 0.5113 GB, free: 96.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.5679, allocations: 0 / 0.5113 GB, free: 96.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003888/0.5683, allocations: 0.5429 MB / 0.5118 GB, free: 96.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008169/0.5691, allocations: 226.9 kB / 0.5121 GB, free: 96.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.5706, allocations: 1.047 MB / 0.5131 GB, free: 95.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005348/0.5711, allocations: 1.039 MB / 0.5141 GB, free: 94.84 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5711, allocations: 2.906 kB / 0.5141 GB, free: 94.84 MB / 382.1 MB Notification: Performance of Templates: time 0.01311/0.5842, allocations: 11.92 MB / 0.5257 GB, free: 88.63 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches