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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.0.0_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.001524/0.001524, allocations: 109.5 kB / 16.92 MB, free: 5.777 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.001912/0.001912, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 51.55 kB / 300.6 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1061, allocations: 49.44 MB / 350 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003226/0.1094, allocations: 1.803 MB / 351.9 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.1115, allocations: 0.9446 MB / 352.8 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.1117, allocations: 7.938 kB / 352.8 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.1119, allocations: 27.72 kB / 352.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.884e-05/0.112, allocations: 31.72 kB / 352.9 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004034/0.1124, allocations: 91.83 kB / 353 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003879/0.1128, allocations: 319.4 kB / 353.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.113, allocations: 53.67 kB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00069/0.1137, allocations: 0.7174 MB / 354 MB, free: 444 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.1139, allocations: 147.4 kB / 354.2 MB, free: 296 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.762e-05/0.1139, allocations: 20 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.39e-05/0.114, allocations: 20 kB / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1142, allocations: 139.4 kB / 354.4 MB, free: 116 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.1144, allocations: 242.2 kB / 354.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000657/0.1151, allocations: 0.7398 MB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1151, allocations: 0 / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1151, allocations: 0 / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.1151, allocations: 3.938 kB / 355.3 MB, free: 15.13 MB / 302.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.001423/0.1165, allocations: 1.176 MB / 356.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.1166, allocations: 8.031 kB / 356.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.1167, allocations: 76.09 kB / 356.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.1172, allocations: 396.1 kB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.1172, allocations: 16.56 kB / 357 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.1173, allocations: 20.38 kB / 357 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005439/0.1178, allocations: 246.2 kB / 357.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.1179, allocations: 0 / 357.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.484e-05/0.1179, allocations: 12 kB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.1179, allocations: 4 kB / 357.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003021/0.1182, allocations: 144.1 kB / 357.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.1195, allocations: 0.7271 MB / 358.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003669/0.1199, allocations: 206.4 kB / 358.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.1202, allocations: 172.8 kB / 358.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.1202, allocations: 4 kB / 358.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006373/0.1209, allocations: 397.9 kB / 358.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.304e-06/0.1209, allocations: 3.938 kB / 358.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001479/0.1224, allocations: 0.9241 MB / 359.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/0.1225, allocations: 281 kB / 360.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.124, allocations: 0.9491 MB / 361.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.001e-05/0.124, allocations: 37.7 kB / 361.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.554e-05/0.1241, allocations: 137.9 kB / 361.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.034e-05/0.1242, allocations: 59.2 kB / 361.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.1245, allocations: 165 kB / 361.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1246, allocations: 338.8 kB / 361.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/0.1249, allocations: 128.2 kB / 361.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.1251, allocations: 168.7 kB / 362.1 MB, free: 7.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006578/0.1258, allocations: 0.6949 MB / 362.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1258, allocations: 7.938 kB / 362.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001027/0.1269, allocations: 0.7527 MB / 363.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/0.127, allocations: 245.6 kB / 363.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1271, allocations: 4 kB / 363.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1271, allocations: 0 / 363.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.083e-05/0.1271, allocations: 7.938 kB / 363.8 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.1271, allocations: 4 kB / 363.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.1274, allocations: 23.92 kB / 363.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.1275, allocations: 116.1 kB / 363.9 MB, free: 5.918 MB / 302.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.0006746/0.1282, allocations: 0.6124 MB / 364.5 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.1284, allocations: 79.06 kB / 364.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000265/0.1286, allocations: 126.9 kB / 364.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.1287, allocations: 0 / 364.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.1287, allocations: 3.938 kB / 364.7 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.1287, allocations: 4 kB / 364.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001993/0.1307, allocations: 1.429 MB / 366.2 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1307, allocations: 7.922 kB / 366.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.741e-05/0.1307, allocations: 4 kB / 366.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1307, allocations: 0 / 366.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.626e-05/0.1308, allocations: 27.98 kB / 366.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1308, allocations: 4 kB / 366.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1308, allocations: 0 / 366.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.132, allocations: 0.9647 MB / 367.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005979/0.1326, allocations: 419.7 kB / 367.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.1327, allocations: 23.98 kB / 367.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.1329, allocations: 19.98 kB / 367.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.1331, allocations: 55.94 kB / 367.7 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.1332, allocations: 107.9 kB / 367.8 MB, free: 1.789 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008878/0.1341, allocations: 0.6899 MB / 368.5 MB, free: 1.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1341, allocations: 0 / 368.5 MB, free: 1.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004022/0.1345, allocations: 95.94 kB / 368.6 MB, free: 1.008 MB / 302.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.0001942/0.1347, allocations: 155.1 kB / 368.7 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1672/0.3019, allocations: 0.8876 MB / 369.6 MB, free: 26.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.302, allocations: 0 / 369.6 MB, free: 26.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009197/0.3029, allocations: 0.7528 MB / 370.4 MB, free: 25.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.3046, allocations: 277.5 kB / 370.6 MB, free: 25.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.3073, allocations: 1.286 MB / 371.9 MB, free: 25.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000567/0.3079, allocations: 0.9376 MB / 372.9 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003326/0.3082, allocations: 95.33 kB / 372.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.3084, allocations: 52.19 kB / 373 MB, free: 24.45 MB / 302.1 MB Notification: Performance of SimCode: time 1.223e-06/0.3084, allocations: 3.812 kB / 373 MB, free: 24.45 MB / 302.1 MB Notification: Performance of Templates: time 0.01887/0.3272, allocations: 9.48 MB / 382.5 MB, free: 21.88 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.makefile (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) 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) Reference file matches