Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_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_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 109.4 kB / 18.36 MB, free: 4.641 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.001597/0.001597, allocations: 192 kB / 19.29 MB, free: 3.715 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.623/1.623, allocations: 205.1 MB / 225.2 MB, free: 12.29 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.001307/0.001308, allocations: 52.39 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1276, allocations: 46.62 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003411/0.131, allocations: 1.816 MB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.1333, allocations: 0.9723 MB / 331.5 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.881e-05/0.1335, allocations: 11.94 kB / 331.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.1337, allocations: 27.72 kB / 331.6 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.441e-05/0.1338, allocations: 35.66 kB / 331.6 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.1342, allocations: 99.81 kB / 331.7 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004262/0.1346, allocations: 315.4 kB / 332 MB, free: 484 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.1348, allocations: 53.66 kB / 332 MB, free: 428 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008797/0.1357, allocations: 0.7135 MB / 332.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.1359, allocations: 143.4 kB / 332.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.57e-05/0.136, allocations: 20 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.423e-05/0.136, allocations: 20 kB / 332.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.1362, allocations: 147.4 kB / 333.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002507/0.1365, allocations: 238.3 kB / 333.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000738/0.1372, allocations: 0.7512 MB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.1372, allocations: 4 kB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1372, allocations: 3.938 kB / 334.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.1373, allocations: 4 kB / 334.1 MB, free: 14.38 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001404/0.1387, allocations: 1.161 MB / 335.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1387, allocations: 8.031 kB / 335.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.1389, allocations: 76.09 kB / 335.3 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005337/0.1394, allocations: 404 kB / 335.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.1395, allocations: 12.56 kB / 335.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.489e-05/0.1395, allocations: 24.36 kB / 335.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.1401, allocations: 246.2 kB / 336 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1401, allocations: 0 / 336 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.096e-05/0.1401, allocations: 16 kB / 336 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.882e-06/0.1401, allocations: 4 kB / 336 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.1404, allocations: 136.2 kB / 336.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.1417, allocations: 0.727 MB / 336.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.1421, allocations: 202.4 kB / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.1424, allocations: 176.8 kB / 337.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.1424, allocations: 4 kB / 337.2 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00062/0.143, allocations: 401.9 kB / 337.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.663e-06/0.1431, allocations: 0 / 337.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.00148/0.1445, allocations: 0.9162 MB / 338.6 MB, free: 9.602 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001609/0.1447, allocations: 285 kB / 338.8 MB, free: 9.262 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.1459, allocations: 0.9491 MB / 339.8 MB, free: 8.305 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.146, allocations: 41.69 kB / 339.8 MB, free: 8.258 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.373e-05/0.1461, allocations: 134 kB / 340 MB, free: 8.121 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.999e-05/0.1462, allocations: 55.31 kB / 340 MB, free: 8.066 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/0.1464, allocations: 165.1 kB / 340.2 MB, free: 7.898 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1465, allocations: 334.8 kB / 340.5 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.1468, allocations: 124.2 kB / 340.6 MB, free: 7.441 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.147, allocations: 171.8 kB / 340.8 MB, free: 7.262 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006973/0.1477, allocations: 0.6912 MB / 341.5 MB, free: 6.457 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.1478, allocations: 3.938 kB / 341.5 MB, free: 6.453 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001104/0.1489, allocations: 0.7564 MB / 342.2 MB, free: 5.641 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002266/0.1491, allocations: 245.6 kB / 342.5 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.1491, allocations: 3.938 kB / 342.5 MB, free: 5.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.1492, allocations: 8.094 kB / 342.5 MB, free: 5.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.231e-05/0.1492, allocations: 7.984 kB / 342.5 MB, free: 5.332 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.1492, allocations: 4 kB / 342.5 MB, free: 5.328 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.1495, allocations: 23.92 kB / 342.5 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.1497, allocations: 108.2 kB / 342.6 MB, free: 5.199 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007435/0.1504, allocations: 0.6123 MB / 343.2 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.8e-05/0.1505, allocations: 75.16 kB / 343.3 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002194/0.1508, allocations: 130.9 kB / 343.4 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1508, allocations: 0 / 343.4 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.1508, allocations: 0 / 343.4 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.1508, allocations: 3.984 kB / 343.4 MB, free: 4.316 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.1527, allocations: 1.429 MB / 344.9 MB, free: 2.781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1527, allocations: 0 / 344.9 MB, free: 2.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.458e-05/0.1528, allocations: 4 kB / 344.9 MB, free: 2.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1528, allocations: 4 kB / 344.9 MB, free: 2.773 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-05/0.1528, allocations: 31.97 kB / 344.9 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1528, allocations: 0 / 344.9 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1528, allocations: 8 kB / 344.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.1541, allocations: 0.9609 MB / 345.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000661/0.1547, allocations: 423.6 kB / 346.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.1548, allocations: 24 kB / 346.3 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.1551, allocations: 23.92 kB / 346.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.1552, allocations: 55.94 kB / 346.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.1554, allocations: 115.8 kB / 346.5 MB, free: 1.059 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009311/0.1563, allocations: 0.6938 MB / 347.2 MB, free: 376 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1563, allocations: 0 / 347.2 MB, free: 376 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004039/0.1567, allocations: 95.94 kB / 347.3 MB, free: 280 kB / 286.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]) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002132/0.157, allocations: 139.2 kB / 347.4 MB, free: 132 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.158, allocations: 0.8818 MB / 348.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.158, allocations: 0 / 348.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006668/0.1587, allocations: 0.7539 MB / 349.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.1597, allocations: 278.2 kB / 349.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002085/0.1618, allocations: 1.289 MB / 350.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007469/0.1626, allocations: 0.9364 MB / 351.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002429/0.1628, allocations: 89.34 kB / 351.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.981e-05/0.1629, allocations: 51.36 kB / 351.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1629, allocations: 0 / 351.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01643/0.1794, allocations: 9.49 MB / 361.2 MB, free: 2.094 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches