Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009846/0.0009846, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009507/0.0009507, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9896/0.9896, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Digital.Examples.WiredX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 273.5 MB, free: 1.137 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208e-05/1.353e-05, allocations: 2.312 kB / 273.5 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002029/0.002043, allocations: 1.824 MB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.003489, allocations: 0.9702 MB / 276.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.717e-05/0.003556, allocations: 8 kB / 276.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.003688, allocations: 15.8 kB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.446e-05/0.003762, allocations: 43.64 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003204/0.004082, allocations: 107.7 kB / 276.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000269/0.004351, allocations: 287.3 kB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.909e-05/0.004441, allocations: 38.44 kB / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000524/0.004965, allocations: 0.7369 MB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.005101, allocations: 123.6 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.094e-05/0.005142, allocations: 24 kB / 277.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.499e-05/0.005177, allocations: 20 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.313e-05/0.00527, allocations: 147.4 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.244e-05/0.005362, allocations: 119.5 kB / 277.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000362/0.005724, allocations: 0.5643 MB / 278.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.005727, allocations: 3.984 kB / 278.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.005728, allocations: 0 / 278.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.005732, allocations: 0 / 278.5 MB, free: 12.1 MB / 266.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.0006935/0.006426, allocations: 1.06 MB / 279.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.888e-05/0.006454, allocations: 12.03 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.006527, allocations: 60.88 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.006766, allocations: 334.3 kB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.00679, allocations: 16.56 kB / 280 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.006815, allocations: 16.38 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003324/0.007148, allocations: 434.1 kB / 280.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.007155, allocations: 0 / 280.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.007178, allocations: 19.92 kB / 280.4 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.007182, allocations: 0 / 280.4 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.007334, allocations: 309.8 kB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004943/0.007829, allocations: 407.6 kB / 281.1 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002708/0.0081, allocations: 324.1 kB / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.008245, allocations: 314.4 kB / 281.8 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.008253, allocations: 0 / 281.8 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002954/0.008548, allocations: 0.5619 MB / 282.3 MB, free: 7.852 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.312e-06/0.00855, allocations: 0 / 282.3 MB, free: 7.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005693/0.009119, allocations: 1.022 MB / 283.3 MB, free: 6.676 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.999e-05/0.009209, allocations: 285 kB / 283.6 MB, free: 6.336 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004868/0.009696, allocations: 0.6207 MB / 284.2 MB, free: 5.703 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.009724, allocations: 33.7 kB / 284.3 MB, free: 5.664 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.465e-05/0.009769, allocations: 125.9 kB / 284.4 MB, free: 5.535 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.582e-05/0.009815, allocations: 59.56 kB / 284.5 MB, free: 5.477 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.009929, allocations: 145.3 kB / 284.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.702e-05/0.01001, allocations: 334.8 kB / 284.9 MB, free: 4.992 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.01016, allocations: 301.8 kB / 285.2 MB, free: 4.648 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.01033, allocations: 337.5 kB / 285.5 MB, free: 4.258 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.01065, allocations: 0.6267 MB / 286.2 MB, free: 3.516 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.01065, allocations: 0 / 286.2 MB, free: 3.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003735/0.01102, allocations: 0.681 MB / 286.9 MB, free: 2.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.98e-05/0.01111, allocations: 245.6 kB / 287.1 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.01112, allocations: 4 kB / 287.1 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.01113, allocations: 4.031 kB / 287.1 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.694e-05/0.01116, allocations: 19.92 kB / 287.1 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.01116, allocations: 4 kB / 287.1 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.01128, allocations: 23.94 kB / 287.2 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.187e-05/0.01135, allocations: 100.1 kB / 287.2 MB, free: 2.289 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.0004096/0.01176, allocations: 0.5721 MB / 287.8 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000269/0.01203, allocations: 71.94 kB / 287.9 MB, free: 1.586 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.01217, allocations: 110.9 kB / 288 MB, free: 1.477 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01217, allocations: 3.938 kB / 288 MB, free: 1.473 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-06/0.01217, allocations: 4 kB / 288 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.01218, allocations: 0 / 288 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007/0.01288, allocations: 1.057 MB / 289.1 MB, free: 296 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01288, allocations: 0 / 289.1 MB, free: 296 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.385e-05/0.01289, allocations: 7.984 kB / 289.1 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.0129, allocations: 0 / 289.1 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.01292, allocations: 19.98 kB / 289.1 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.01292, allocations: 3.938 kB / 289.1 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01293, allocations: 3.938 kB / 289.1 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004313/0.01336, allocations: 0.8462 MB / 289.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/0.01368, allocations: 281.1 kB / 290.2 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.093e-05/0.01374, allocations: 19.98 kB / 290.2 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.01385, allocations: 23.94 kB / 290.3 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.029e-05/0.01394, allocations: 47.94 kB / 290.3 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.837e-05/0.01401, allocations: 91.92 kB / 290.4 MB, free: 14.83 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002754/0.01428, allocations: 316.3 kB / 290.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01428, allocations: 0 / 290.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002302/0.01451, allocations: 92 kB / 290.8 MB, free: 14.43 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.0001201/0.01463, allocations: 132.3 kB / 290.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005351/0.01517, allocations: 1.116 MB / 292 MB, free: 12.97 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/0.01518, allocations: 12 kB / 292.1 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003405/0.01552, allocations: 0.7972 MB / 292.9 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.01603, allocations: 290.2 kB / 293.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.01727, allocations: 1.43 MB / 294.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001749/0.01744, allocations: 140.2 kB / 294.7 MB, free: 10.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000145/0.01759, allocations: 85.28 kB / 294.8 MB, free: 9.992 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004487/0.01804, allocations: 285.1 kB / 295.1 MB, free: 9.715 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01804, allocations: 0 / 295.1 MB, free: 9.715 MB / 282.7 MB Notification: Performance of Templates: time 0.00931/0.02735, allocations: 9.425 MB / 304.5 MB, free: 420 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.793592452071607]