Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002416/0.002415, allocations: 176.5 kB / 8.151 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.806/1.806, allocations: 205.2 MB / 213.7 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001248/0.001248, allocations: 89.52 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.204e-05/1.213e-05, allocations: 4 kB / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2615, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.3879, allocations: 81.98 MB / 443.8 MB, free: 4.066 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.3882, allocations: 67.97 kB / 443.9 MB, free: 4 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1492/0.5375, allocations: 42.16 MB / 486 MB, free: 9.996 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.814e-05/0.5376, allocations: 19.94 kB / 486.1 MB, free: 9.977 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001286/0.5389, allocations: 0.9376 MB / 487 MB, free: 8.941 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.5389, allocations: 8.031 kB / 487 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.5391, allocations: 75.16 kB / 487.1 MB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007844/0.5399, allocations: 379.9 kB / 487.4 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.54, allocations: 8 kB / 487.5 MB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.5401, allocations: 16 kB / 487.5 MB, free: 8.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004879/0.5406, allocations: 140.4 kB / 487.6 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007425/0.5414, allocations: 282.9 kB / 487.9 MB, free: 8.004 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.5414, allocations: 0 / 487.9 MB, free: 8.004 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.56e-05/0.5415, allocations: 7.984 kB / 487.9 MB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.5415, allocations: 4 kB / 487.9 MB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.5437, allocations: 0.7629 MB / 488.7 MB, free: 7.191 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005248/0.5443, allocations: 202.4 kB / 488.9 MB, free: 6.984 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004643/0.5448, allocations: 180.8 kB / 489 MB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.5448, allocations: 0 / 489 MB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006853/0.5455, allocations: 390 kB / 489.4 MB, free: 6.387 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 2.745e-06/0.5455, allocations: 4 kB / 489.4 MB, free: 6.383 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001285/0.5468, allocations: 457.1 kB / 489.9 MB, free: 5.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/0.547, allocations: 277 kB / 490.1 MB, free: 5.598 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/0.5489, allocations: 0.7961 MB / 490.9 MB, free: 4.793 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000151/0.5491, allocations: 33.7 kB / 491 MB, free: 4.754 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.5492, allocations: 174.1 kB / 491.1 MB, free: 4.582 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.5494, allocations: 55.3 kB / 491.2 MB, free: 4.527 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.304e-05/0.5495, allocations: 8 kB / 491.2 MB, free: 4.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.5496, allocations: 326.7 kB / 491.5 MB, free: 4.191 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004145/0.5501, allocations: 136.2 kB / 491.6 MB, free: 4.059 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004641/0.5505, allocations: 154.2 kB / 491.8 MB, free: 3.902 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.5509, allocations: 115.8 kB / 491.9 MB, free: 3.789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.5509, allocations: 0 / 491.9 MB, free: 3.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00114/0.5521, allocations: 401.4 kB / 492.3 MB, free: 3.391 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.5521, allocations: 4 kB / 492.3 MB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.5521, allocations: 0 / 492.3 MB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.5522, allocations: 11.88 kB / 492.3 MB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.489e-05/0.5522, allocations: 8 kB / 492.3 MB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.5522, allocations: 0 / 492.3 MB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.5527, allocations: 27.97 kB / 492.3 MB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004045/0.5531, allocations: 259.8 kB / 492.6 MB, free: 3.086 MB / 378.7 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.0004501/0.5535, allocations: 307.1 kB / 492.9 MB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.5538, allocations: 79.16 kB / 493 MB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004768/0.5543, allocations: 129.1 kB / 493.1 MB, free: 2.523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.5543, allocations: 0 / 493.1 MB, free: 2.523 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.5543, allocations: 8 kB / 493.1 MB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.5543, allocations: 0 / 493.1 MB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.5565, allocations: 0.9981 MB / 494.1 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.5566, allocations: 0 / 494.1 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-05/0.5566, allocations: 15.92 kB / 494.1 MB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.356e-05/0.5567, allocations: 11.98 kB / 494.1 MB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001306/0.5568, allocations: 47.86 kB / 494.2 MB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5568, allocations: 0 / 494.2 MB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.5568, allocations: 0 / 494.2 MB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001361/0.5582, allocations: 0.5728 MB / 494.8 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.5595, allocations: 451.6 kB / 495.2 MB, free: 356 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002196/0.5597, allocations: 16 kB / 495.2 MB, free: 340 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005358/0.5602, allocations: 27.98 kB / 495.2 MB, free: 312 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002991/0.5606, allocations: 75.83 kB / 495.3 MB, free: 236 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000463/0.561, allocations: 271.6 kB / 495.6 MB, free: 15.96 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001495/0.5626, allocations: 0.6431 MB / 496.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000602/0.5632, allocations: 76 kB / 496.3 MB, free: 15.25 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: 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.0003007/0.5635, allocations: 145.4 kB / 496.4 MB, free: 15.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.5647, allocations: 0.5562 MB / 497 MB, free: 14.49 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5647, allocations: 3.938 kB / 497 MB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009005/0.5656, allocations: 0.5445 MB / 497.5 MB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001773/0.5674, allocations: 217.3 kB / 497.8 MB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.5708, allocations: 1.117 MB / 498.9 MB, free: 12.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.5721, allocations: 1.049 MB / 499.9 MB, free: 11.44 MB / 394.7 MB Notification: Performance of SimCode: time 4.038e-06/0.5721, allocations: 1.406 kB / 499.9 MB, free: 11.44 MB / 394.7 MB Notification: Performance of Templates: time 0.01646/0.5886, allocations: 7.759 MB / 0.4958 GB, free: 3.559 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches