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.001872/0.001872, allocations: 113.5 kB / 17.28 MB, free: 6.188 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.001877/0.001877, allocations: 185.3 kB / 18.2 MB, free: 5.27 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.881/1.881, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001185/0.001185, allocations: 55.92 kB / 280.2 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1015, allocations: 46.63 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.004317/0.1059, allocations: 1.862 MB / 328.6 MB, free: 2.918 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002435/0.1084, allocations: 0.9715 MB / 329.6 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.1086, allocations: 4 kB / 329.6 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000245/0.1089, allocations: 19.84 kB / 329.6 MB, free: 1.914 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.109, allocations: 27.78 kB / 329.7 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005111/0.1095, allocations: 83.91 kB / 329.7 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005941/0.1101, allocations: 323.4 kB / 330.1 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.1104, allocations: 57.66 kB / 330.1 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008883/0.1113, allocations: 0.7329 MB / 330.8 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002611/0.1115, allocations: 159.4 kB / 331 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.39e-05/0.1116, allocations: 24 kB / 331 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.304e-05/0.1117, allocations: 20 kB / 331 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.1118, allocations: 139.4 kB / 331.2 MB, free: 368 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002324/0.1121, allocations: 238.3 kB / 331.4 MB, free: 128 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007249/0.1128, allocations: 0.7437 MB / 332.2 MB, free: 15.38 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1128, allocations: 0 / 332.2 MB, free: 15.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.1129, allocations: 3.984 kB / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.1129, allocations: 0 / 332.2 MB, free: 15.37 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.00134/0.1142, allocations: 1.168 MB / 333.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1143, allocations: 8.031 kB / 333.3 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.1144, allocations: 80.09 kB / 333.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.1149, allocations: 392.1 kB / 333.8 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.1149, allocations: 16.56 kB / 333.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.308e-05/0.115, allocations: 20.38 kB / 333.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005081/0.1155, allocations: 250.2 kB / 334.1 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-06/0.1155, allocations: 0 / 334.1 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.11e-05/0.1156, allocations: 15.98 kB / 334.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1156, allocations: 4 kB / 334.1 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002747/0.1159, allocations: 136.2 kB / 334.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.117, allocations: 0.731 MB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.1175, allocations: 202.4 kB / 335.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003581/0.1178, allocations: 176.8 kB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.1179, allocations: 3.938 kB / 335.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007573/0.1186, allocations: 385.8 kB / 335.7 MB, free: 11.58 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.492e-06/0.1186, allocations: 0 / 335.7 MB, free: 11.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001706/0.1204, allocations: 0.9247 MB / 336.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001926/0.1206, allocations: 285 kB / 336.9 MB, free: 10.26 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.122, allocations: 0.949 MB / 337.9 MB, free: 9.301 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.493e-05/0.122, allocations: 41.69 kB / 337.9 MB, free: 9.254 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1222, allocations: 122 kB / 338 MB, free: 9.129 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.45e-05/0.1222, allocations: 63.25 kB / 338.1 MB, free: 9.066 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.1225, allocations: 161.1 kB / 338.2 MB, free: 8.902 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1226, allocations: 338.8 kB / 338.6 MB, free: 8.562 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.1229, allocations: 128.2 kB / 338.7 MB, free: 8.438 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.1232, allocations: 163.8 kB / 338.9 MB, free: 8.266 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006874/0.1239, allocations: 0.6982 MB / 339.6 MB, free: 7.453 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.1239, allocations: 3.938 kB / 339.6 MB, free: 7.449 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001066/0.125, allocations: 0.7526 MB / 340.3 MB, free: 6.641 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001808/0.1252, allocations: 249.6 kB / 340.6 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1252, allocations: 0 / 340.6 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.1252, allocations: 0 / 340.6 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.589e-05/0.1253, allocations: 19.92 kB / 340.6 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.1253, allocations: 0 / 340.6 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.1255, allocations: 27.92 kB / 340.6 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.1257, allocations: 108.1 kB / 340.7 MB, free: 6.195 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.0006254/0.1263, allocations: 0.6163 MB / 341.3 MB, free: 5.52 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.1264, allocations: 83 kB / 341.4 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.1266, allocations: 130.9 kB / 341.5 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1266, allocations: 3.938 kB / 341.5 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1266, allocations: 0 / 341.5 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1266, allocations: 3.984 kB / 341.5 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001739/0.1284, allocations: 1.421 MB / 343 MB, free: 3.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1284, allocations: 4 kB / 343 MB, free: 3.766 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.24e-05/0.1284, allocations: 11.98 kB / 343 MB, free: 3.754 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.1284, allocations: 0 / 343 MB, free: 3.754 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.301e-05/0.1285, allocations: 27.98 kB / 343 MB, free: 3.727 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1285, allocations: 3.938 kB / 343 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1285, allocations: 0 / 343 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.1297, allocations: 0.9611 MB / 344 MB, free: 2.695 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005325/0.1303, allocations: 419.6 kB / 344.4 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.1304, allocations: 24 kB / 344.4 MB, free: 2.242 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.1306, allocations: 27.91 kB / 344.4 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.1308, allocations: 51.95 kB / 344.5 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.1309, allocations: 115.8 kB / 344.6 MB, free: 2.051 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00089/0.1318, allocations: 0.6899 MB / 345.3 MB, free: 1.363 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1318, allocations: 0 / 345.3 MB, free: 1.363 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003988/0.1322, allocations: 95.94 kB / 345.4 MB, free: 1.27 MB / 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.0002057/0.1324, allocations: 151.2 kB / 345.5 MB, free: 1.113 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.1335, allocations: 0.8857 MB / 346.4 MB, free: 132 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.1335, allocations: 0 / 346.4 MB, free: 132 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006575/0.1342, allocations: 0.7615 MB / 347.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.1352, allocations: 279.1 kB / 347.5 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.1373, allocations: 1.496 MB / 348.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000621/0.138, allocations: 0.944 MB / 349.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002732/0.1383, allocations: 93.34 kB / 350 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.884e-05/0.1384, allocations: 43.36 kB / 350 MB, free: 12.37 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1384, allocations: 0 / 350 MB, free: 12.37 MB / 302.1 MB Notification: Performance of Templates: time 0.01526/0.1536, allocations: 9.24 MB / 359.3 MB, free: 3.102 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches