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.002528/0.002528, allocations: 99.86 kB / 20.96 MB, free: 3.457 MB / 18.57 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.002425/0.002425, allocations: 145.1 kB / 24.26 MB, free: 168 kB / 18.57 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.615/1.615, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 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.222e-06/1.222e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.731e-05/2.853e-05, allocations: 6.25 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003401/0.00343, allocations: 1.748 MB / 269.1 MB, free: 4.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.005808, allocations: 0.9159 MB / 270 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.766e-05/0.005886, allocations: 0 / 270 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.006045, allocations: 27.72 kB / 270 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.006158, allocations: 47.64 kB / 270.1 MB, free: 3.988 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.006553, allocations: 107.7 kB / 270.2 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000453/0.007006, allocations: 299.3 kB / 270.5 MB, free: 3.59 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.007133, allocations: 25.8 kB / 270.5 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.008168, allocations: 0.7915 MB / 271.3 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.008406, allocations: 131.6 kB / 271.4 MB, free: 2.641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.008506, allocations: 20 kB / 271.4 MB, free: 2.621 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.965e-05/0.008596, allocations: 24 kB / 271.4 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.008792, allocations: 147.4 kB / 271.6 MB, free: 2.453 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.008981, allocations: 119.5 kB / 271.7 MB, free: 2.336 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001124/0.01011, allocations: 0.7514 MB / 272.5 MB, free: 1.582 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.01011, allocations: 4 kB / 272.5 MB, free: 1.578 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01011, allocations: 0 / 272.5 MB, free: 1.578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.01012, allocations: 0 / 272.5 MB, free: 1.578 MB / 250.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.001731/0.01185, allocations: 1.314 MB / 273.8 MB, free: 180 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.01189, allocations: 8.922 kB / 273.8 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.01206, allocations: 96.42 kB / 273.9 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005606/0.01262, allocations: 345.2 kB / 274.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.01266, allocations: 12.56 kB / 274.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.01271, allocations: 24.38 kB / 274.2 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007536/0.01347, allocations: 489.5 kB / 274.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.01348, allocations: 0 / 274.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/0.01352, allocations: 8 kB / 274.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.01353, allocations: 0 / 274.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005371/0.01406, allocations: 384.6 kB / 275.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.01585, allocations: 0.8977 MB / 276 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005757/0.01643, allocations: 420.5 kB / 276.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005081/0.01694, allocations: 393.2 kB / 276.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.01696, allocations: 8 kB / 276.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008187/0.01778, allocations: 0.6417 MB / 277.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.362e-06/0.01778, allocations: 0 / 277.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.002144/0.01992, allocations: 1.451 MB / 278.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004403/0.02036, allocations: 281 kB / 279.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002041/0.02241, allocations: 1.268 MB / 280.4 MB, free: 8.902 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/0.02246, allocations: 33.7 kB / 280.5 MB, free: 8.863 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.02262, allocations: 184.8 kB / 280.7 MB, free: 8.676 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.02272, allocations: 71.53 kB / 280.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/0.02298, allocations: 179 kB / 280.9 MB, free: 8.422 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002997/0.02328, allocations: 0.5235 MB / 281.4 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004882/0.02377, allocations: 365.8 kB / 281.8 MB, free: 7.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005135/0.02428, allocations: 428.8 kB / 282.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009007/0.02518, allocations: 0.7334 MB / 282.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.02518, allocations: 0 / 282.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001488/0.02667, allocations: 1.032 MB / 284 MB, free: 5.008 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002117/0.02688, allocations: 253.6 kB / 284.2 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.02689, allocations: 4 kB / 284.2 MB, free: 4.707 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.02691, allocations: 4 kB / 284.2 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.458e-05/0.02694, allocations: 4 kB / 284.2 MB, free: 4.699 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.02695, allocations: 7.984 kB / 284.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.02717, allocations: 19.94 kB / 284.3 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/0.02732, allocations: 112.1 kB / 284.4 MB, free: 4.562 MB / 266.7 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.0007415/0.02806, allocations: 0.6228 MB / 285 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.02822, allocations: 103.5 kB / 285.1 MB, free: 3.777 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.02844, allocations: 114.8 kB / 285.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.02845, allocations: 4 kB / 285.2 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.02845, allocations: 3.938 kB / 285.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.02845, allocations: 0 / 285.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002962/0.03142, allocations: 1.859 MB / 287.1 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.03142, allocations: 0 / 287.1 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.867e-05/0.03144, allocations: 7.938 kB / 287.1 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.03144, allocations: 0 / 287.1 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.347e-05/0.0315, allocations: 31.98 kB / 287.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.0315, allocations: 0 / 287.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.03151, allocations: 0 / 287.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.0333, allocations: 1.327 MB / 288.4 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008148/0.03412, allocations: 384.8 kB / 288.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.03423, allocations: 20 kB / 288.8 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.03444, allocations: 23.98 kB / 288.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.03463, allocations: 63.92 kB / 288.9 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.03478, allocations: 119.8 kB / 289 MB, free: 15.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001241/0.03602, allocations: 0.7757 MB / 289.8 MB, free: 14.79 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03602, allocations: 0 / 289.8 MB, free: 14.79 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004176/0.03644, allocations: 92 kB / 289.9 MB, free: 14.7 MB / 282.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]) * 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.0002137/0.03665, allocations: 155.2 kB / 290 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.03817, allocations: 1.314 MB / 291.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.03817, allocations: 0 / 291.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009326/0.03911, allocations: 0.9027 MB / 292.3 MB, free: 11.97 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.0403, allocations: 297 kB / 292.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.04291, allocations: 1.511 MB / 294.1 MB, free: 10.11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.04341, allocations: 313 kB / 294.4 MB, free: 9.781 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002579/0.04367, allocations: 97.2 kB / 294.5 MB, free: 9.684 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.04379, allocations: 52.42 kB / 294.5 MB, free: 9.633 MB / 282.7 MB Notification: Performance of SimCode: time 1.342e-06/0.0438, allocations: 0 / 294.5 MB, free: 9.633 MB / 282.7 MB Notification: Performance of Templates: time 0.1357/0.1794, allocations: 10.25 MB / 304.8 MB, free: 47.7 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) [Timeout 240] 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.8360195809509605]