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.001289/0.001289, allocations: 107.3 kB / 18.35 MB, free: 4.762 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.001245/0.001245, allocations: 192 kB / 19.29 MB, free: 3.832 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.691/1.691, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001183/0.001183, allocations: 51.92 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09272/0.09392, allocations: 46.62 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003621/0.09758, allocations: 1.808 MB / 330.5 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.0997, allocations: 0.9839 MB / 331.5 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.877e-05/0.0998, allocations: 4 kB / 331.5 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.09998, allocations: 19.78 kB / 331.5 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.347e-05/0.1001, allocations: 35.66 kB / 331.6 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.1005, allocations: 99.81 kB / 331.7 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.1009, allocations: 327.3 kB / 332 MB, free: 492 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.1011, allocations: 49.67 kB / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000795/0.1019, allocations: 0.7213 MB / 332.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.1021, allocations: 147.4 kB / 332.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.322e-05/0.1022, allocations: 20 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.512e-05/0.1023, allocations: 20 kB / 332.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.1025, allocations: 135.4 kB / 333.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002526/0.1027, allocations: 242.2 kB / 333.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007279/0.1034, allocations: 0.7628 MB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1035, allocations: 3.938 kB / 334.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1035, allocations: 0 / 334.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.1035, allocations: 0 / 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.001336/0.1048, allocations: 1.157 MB / 335.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1049, allocations: 12.03 kB / 335.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.105, allocations: 72.09 kB / 335.3 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.1055, allocations: 400.1 kB / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.1055, allocations: 12.56 kB / 335.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.089e-05/0.1056, allocations: 24.38 kB / 335.7 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.1061, allocations: 246.2 kB / 336 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1061, allocations: 4 kB / 336 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/0.1061, allocations: 8 kB / 336 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1061, allocations: 4 kB / 336 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003777/0.1065, allocations: 140.1 kB / 336.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.1078, allocations: 0.731 MB / 336.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/0.1081, allocations: 202.4 kB / 337.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003672/0.1085, allocations: 176.8 kB / 337.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.1085, allocations: 4 kB / 337.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005539/0.1091, allocations: 389.9 kB / 337.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.974e-06/0.1091, allocations: 0 / 337.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001619/0.1107, allocations: 0.924 MB / 338.5 MB, free: 9.613 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/0.1109, allocations: 285 kB / 338.8 MB, free: 9.273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.1123, allocations: 0.9491 MB / 339.8 MB, free: 8.316 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.405e-05/0.1124, allocations: 41.69 kB / 339.8 MB, free: 8.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1125, allocations: 130 kB / 339.9 MB, free: 8.137 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.925e-05/0.1126, allocations: 59.27 kB / 340 MB, free: 8.078 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002176/0.1128, allocations: 161.1 kB / 340.2 MB, free: 7.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.113, allocations: 334.8 kB / 340.5 MB, free: 7.578 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003431/0.1133, allocations: 124.2 kB / 340.6 MB, free: 7.457 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004268/0.1138, allocations: 175.8 kB / 340.8 MB, free: 7.273 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008727/0.1147, allocations: 0.6951 MB / 341.5 MB, free: 6.465 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1147, allocations: 3.938 kB / 341.5 MB, free: 6.461 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001046/0.1157, allocations: 0.7526 MB / 342.2 MB, free: 5.652 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001578/0.1159, allocations: 245.6 kB / 342.5 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/0.1159, allocations: 4 kB / 342.5 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.1159, allocations: 0 / 342.5 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.822e-05/0.116, allocations: 11.92 kB / 342.5 MB, free: 5.348 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.116, allocations: 4 kB / 342.5 MB, free: 5.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/0.1162, allocations: 27.92 kB / 342.5 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.1164, allocations: 112.1 kB / 342.6 MB, free: 5.207 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.0006575/0.117, allocations: 0.6085 MB / 343.2 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.275e-05/0.1171, allocations: 79.09 kB / 343.3 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002217/0.1174, allocations: 130.8 kB / 343.4 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1174, allocations: 0 / 343.4 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1174, allocations: 0 / 343.4 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1174, allocations: 7.984 kB / 343.4 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.1192, allocations: 1.425 MB / 344.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1193, allocations: 0 / 344.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.489e-05/0.1193, allocations: 4 kB / 344.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1193, allocations: 4 kB / 344.9 MB, free: 2.781 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.143e-05/0.1193, allocations: 31.97 kB / 344.9 MB, free: 2.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1194, allocations: 4 kB / 344.9 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1194, allocations: 0 / 344.9 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.1206, allocations: 0.957 MB / 345.9 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006663/0.1213, allocations: 431.6 kB / 346.3 MB, free: 1.281 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.303e-05/0.1214, allocations: 20 kB / 346.3 MB, free: 1.262 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.1216, allocations: 23.98 kB / 346.3 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.1217, allocations: 59.92 kB / 346.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.1218, allocations: 111.9 kB / 346.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009326/0.1228, allocations: 0.6899 MB / 347.2 MB, free: 392 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1228, allocations: 0 / 347.2 MB, free: 392 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003528/0.1232, allocations: 95.94 kB / 347.3 MB, free: 296 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.000184/0.1233, allocations: 147.2 kB / 347.4 MB, free: 140 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009638/0.1243, allocations: 0.8862 MB / 348.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1243, allocations: 0 / 348.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006204/0.125, allocations: 0.7494 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.0009591/0.1259, allocations: 268 kB / 349.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.1279, allocations: 1.282 MB / 350.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006378/0.1285, allocations: 0.9444 MB / 351.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.1287, allocations: 89.34 kB / 351.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.433e-05/0.1288, allocations: 51.3 kB / 351.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1288, allocations: 3.938 kB / 351.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Templates: time 0.01303/0.1419, allocations: 9.489 MB / 361.2 MB, free: 2.109 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 cvode -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