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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 100.7 kB / 20.96 MB, free: 480 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 149 kB / 24.24 MB, free: 3.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 173.3 MB / 200.8 MB, free: 12.75 MB / 190.1 MB " [Timeout remaining time 178] 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) 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=5017,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=5017,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 267.3 MB, free: 10.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.366e-05/3.562e-05, allocations: 5.406 kB / 267.3 MB, free: 10.22 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003279/0.003315, allocations: 1.719 MB / 269 MB, free: 8.484 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.005627, allocations: 0.9043 MB / 269.9 MB, free: 7.574 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.252e-05/0.005709, allocations: 7.938 kB / 269.9 MB, free: 7.566 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.005888, allocations: 19.78 kB / 270 MB, free: 7.547 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.006002, allocations: 47.58 kB / 270 MB, free: 7.5 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.006424, allocations: 107.7 kB / 270.1 MB, free: 7.395 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004462/0.00687, allocations: 287.4 kB / 270.4 MB, free: 7.113 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.007024, allocations: 45.72 kB / 270.4 MB, free: 7.066 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.00804, allocations: 0.7838 MB / 271.2 MB, free: 6.281 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.008284, allocations: 131.6 kB / 271.3 MB, free: 6.152 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 7.797e-05/0.008362, allocations: 20 kB / 271.4 MB, free: 6.133 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.001e-05/0.008432, allocations: 20 kB / 271.4 MB, free: 6.113 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.008599, allocations: 147.4 kB / 271.5 MB, free: 5.969 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.008785, allocations: 115.5 kB / 271.6 MB, free: 5.855 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008103/0.009595, allocations: 0.7591 MB / 272.4 MB, free: 5.094 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.009598, allocations: 0 / 272.4 MB, free: 5.094 MB / 254.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.009599, allocations: 0 / 272.4 MB, free: 5.094 MB / 254.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.009606, allocations: 0 / 272.4 MB, free: 5.094 MB / 254.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.001377/0.01098, allocations: 1.109 MB / 273.5 MB, free: 3.902 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.4e-05/0.01106, allocations: 12.92 kB / 273.5 MB, free: 3.891 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.01124, allocations: 100.4 kB / 273.6 MB, free: 3.793 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.01173, allocations: 330.3 kB / 273.9 MB, free: 3.441 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.739e-05/0.01177, allocations: 16.56 kB / 274 MB, free: 3.426 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.319e-05/0.01183, allocations: 20.38 kB / 274 MB, free: 3.406 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007554/0.01258, allocations: 489.5 kB / 274.5 MB, free: 2.871 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.01259, allocations: 3.938 kB / 274.5 MB, free: 2.867 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.545e-05/0.01264, allocations: 11.94 kB / 274.5 MB, free: 2.855 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.01264, allocations: 0 / 274.5 MB, free: 2.855 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004914/0.01313, allocations: 381.8 kB / 274.8 MB, free: 2.434 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.01433, allocations: 0.6331 MB / 275.5 MB, free: 1.77 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005368/0.01486, allocations: 400 kB / 275.9 MB, free: 1.32 MB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004571/0.01532, allocations: 362.4 kB / 276.2 MB, free: 0.9141 MB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.01534, allocations: 4 kB / 276.2 MB, free: 0.9102 MB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007959/0.01614, allocations: 0.6239 MB / 276.9 MB, free: 208 kB / 254.1 MB Notification: Performance of pre-optimization done (n=29): time 1.753e-06/0.01614, allocations: 0 / 276.9 MB, free: 208 kB / 254.1 MB Notification: Performance of matching and sorting (n=29): time 0.002078/0.01822, allocations: 1.427 MB / 278.3 MB, free: 14.62 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002115/0.01843, allocations: 289 kB / 278.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.0198, allocations: 0.9491 MB / 279.5 MB, free: 13.32 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.823e-05/0.01986, allocations: 37.7 kB / 279.5 MB, free: 13.28 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.01996, allocations: 122.1 kB / 279.7 MB, free: 13.16 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.547e-05/0.02006, allocations: 67.55 kB / 279.7 MB, free: 13.09 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002346/0.02029, allocations: 169.2 kB / 279.9 MB, free: 12.92 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.02047, allocations: 330.8 kB / 280.2 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.02093, allocations: 365.8 kB / 280.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004675/0.02139, allocations: 405.5 kB / 281 MB, free: 11.72 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008316/0.02223, allocations: 0.7224 MB / 281.7 MB, free: 10.89 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.02223, allocations: 0 / 281.7 MB, free: 10.89 MB / 270.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001415/0.02364, allocations: 1.028 MB / 282.7 MB, free: 9.754 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.02383, allocations: 249.5 kB / 283 MB, free: 9.461 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.02384, allocations: 0 / 283 MB, free: 9.461 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.02385, allocations: 4 kB / 283 MB, free: 9.457 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.776e-05/0.02389, allocations: 11.98 kB / 283 MB, free: 9.445 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.0239, allocations: 4 kB / 283 MB, free: 9.441 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.02414, allocations: 24.02 kB / 283 MB, free: 9.418 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.02431, allocations: 120.1 kB / 283.1 MB, free: 9.301 MB / 270.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.0007546/0.02507, allocations: 0.6123 MB / 283.7 MB, free: 8.629 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.02522, allocations: 107.4 kB / 283.8 MB, free: 8.523 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002262/0.02545, allocations: 134.8 kB / 284 MB, free: 8.387 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-06/0.02545, allocations: 0 / 284 MB, free: 8.387 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.02546, allocations: 3.984 kB / 284 MB, free: 8.383 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.02546, allocations: 0 / 284 MB, free: 8.383 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00224/0.0277, allocations: 1.563 MB / 285.5 MB, free: 6.684 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.0277, allocations: 0 / 285.5 MB, free: 6.684 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.378e-05/0.02773, allocations: 15.88 kB / 285.6 MB, free: 6.668 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.02773, allocations: 3.938 kB / 285.6 MB, free: 6.664 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.957e-05/0.02779, allocations: 31.98 kB / 285.6 MB, free: 6.633 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.02779, allocations: 0 / 285.6 MB, free: 6.633 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.02779, allocations: 0 / 285.6 MB, free: 6.633 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.02936, allocations: 1.236 MB / 286.8 MB, free: 5.281 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000789/0.03014, allocations: 416.8 kB / 287.2 MB, free: 4.867 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.03026, allocations: 24 kB / 287.3 MB, free: 4.844 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.0305, allocations: 23.97 kB / 287.3 MB, free: 4.82 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.03067, allocations: 51.95 kB / 287.3 MB, free: 4.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/0.03081, allocations: 119.9 kB / 287.5 MB, free: 4.652 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001001/0.03181, allocations: 0.686 MB / 288.1 MB, free: 3.973 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.03181, allocations: 4 kB / 288.1 MB, free: 3.969 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004017/0.03221, allocations: 92 kB / 288.2 MB, free: 3.879 MB / 270.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.0002082/0.03242, allocations: 147.1 kB / 288.4 MB, free: 3.723 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.03382, allocations: 1.248 MB / 289.6 MB, free: 2.277 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.03382, allocations: 0 / 289.6 MB, free: 2.277 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008361/0.03465, allocations: 0.8524 MB / 290.5 MB, free: 1.277 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.03573, allocations: 276.3 kB / 290.7 MB, free: 1.031 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.03802, allocations: 1.556 MB / 292.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.03851, allocations: 345 kB / 292.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002429/0.03875, allocations: 89.28 kB / 292.7 MB, free: 14.95 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.734e-05/0.03885, allocations: 48.42 kB / 292.8 MB, free: 14.9 MB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.03885, allocations: 3.938 kB / 292.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of Templates: time 0.01713/0.05598, allocations: 10.25 MB / 303 MB, free: 4.762 MB / 286.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.404148183763027]