Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.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.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 96.56 kB / 17.3 MB, free: 6.344 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.001349/0.00135, allocations: 178.5 kB / 18.21 MB, free: 5.531 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.684/1.684, allocations: 205.4 MB / 224.4 MB, free: 13.05 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.0005027/0.0005027, allocations: 15.98 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1143, allocations: 47.59 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001838/0.1162, allocations: 1.211 MB / 330.2 MB, free: 2.539 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.1182, allocations: 0.9102 MB / 331.1 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.781e-05/0.1183, allocations: 0 / 331.1 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.748e-05/0.1184, allocations: 3.938 kB / 331.1 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.616e-05/0.1184, allocations: 11.92 kB / 331.1 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002343/0.1187, allocations: 43.89 kB / 331.1 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.1188, allocations: 107.8 kB / 331.2 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.1189, allocations: 20.23 kB / 331.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005786/0.1195, allocations: 0.5615 MB / 331.8 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.1196, allocations: 67.64 kB / 331.9 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.769e-05/0.1197, allocations: 4 kB / 331.9 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.756e-05/0.1197, allocations: 4 kB / 331.9 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.384e-05/0.1198, allocations: 55.77 kB / 332 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.12, allocations: 140.8 kB / 332.1 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003316/0.1203, allocations: 354.6 kB / 332.4 MB, free: 256 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1203, allocations: 0 / 332.4 MB, free: 256 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1203, allocations: 0 / 332.4 MB, free: 256 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.1203, allocations: 0 / 332.4 MB, free: 256 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007101/0.1211, allocations: 0.657 MB / 333.1 MB, free: 15.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1211, allocations: 19.95 kB / 333.1 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.939e-05/0.1212, allocations: 32.56 kB / 333.1 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.1215, allocations: 274.3 kB / 333.4 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.1215, allocations: 8.375 kB / 333.4 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.1215, allocations: 8.375 kB / 333.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.1219, allocations: 129.9 kB / 333.6 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1219, allocations: 0 / 333.6 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.1219, allocations: 7.984 kB / 333.6 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.1219, allocations: 0 / 333.6 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.1221, allocations: 63.97 kB / 333.6 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006637/0.1228, allocations: 464.4 kB / 334.1 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.123, allocations: 98.53 kB / 334.2 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.1231, allocations: 80.89 kB / 334.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.1232, allocations: 4 kB / 334.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003782/0.1235, allocations: 210.7 kB / 334.5 MB, free: 14.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.1236, allocations: 0 / 334.5 MB, free: 14.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008522/0.1244, allocations: 479.9 kB / 334.9 MB, free: 13.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.1245, allocations: 170.2 kB / 335.1 MB, free: 13.31 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000683/0.1252, allocations: 0.5091 MB / 335.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.1253, allocations: 29.7 kB / 335.6 MB, free: 12.76 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.59e-05/0.1254, allocations: 109 kB / 335.7 MB, free: 12.65 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.367e-05/0.1254, allocations: 31.59 kB / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.79e-05/0.1255, allocations: 25.7 kB / 335.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.1256, allocations: 326.8 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.1258, allocations: 55.97 kB / 336.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.1259, allocations: 69.69 kB / 336.2 MB, free: 12.13 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.1263, allocations: 355.7 kB / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1263, allocations: 0 / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005807/0.1269, allocations: 388.3 kB / 337 MB, free: 11.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.127, allocations: 122.8 kB / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.127, allocations: 112 / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.1271, allocations: 3.938 kB / 337.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.612e-05/0.1271, allocations: 3.984 kB / 337.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.1271, allocations: 4 kB / 337.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.1273, allocations: 15.94 kB / 337.1 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.252e-05/0.1274, allocations: 59.97 kB / 337.2 MB, free: 11.09 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0003963/0.1278, allocations: 362.8 kB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.522e-05/0.1278, allocations: 43.64 kB / 337.6 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.1279, allocations: 67.14 kB / 337.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.128, allocations: 4 kB / 337.6 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.128, allocations: 0 / 337.6 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.128, allocations: 0 / 337.6 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.129, allocations: 0.8173 MB / 338.5 MB, free: 9.684 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.129, allocations: 4 kB / 338.5 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-06/0.129, allocations: 3.938 kB / 338.5 MB, free: 9.676 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.129, allocations: 0 / 338.5 MB, free: 9.676 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1291, allocations: 15.98 kB / 338.5 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1291, allocations: 0 / 338.5 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1291, allocations: 3.938 kB / 338.5 MB, free: 9.656 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006766/0.1298, allocations: 0.533 MB / 339 MB, free: 9.082 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.1301, allocations: 248.5 kB / 339.3 MB, free: 8.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.935e-05/0.1301, allocations: 8 kB / 339.3 MB, free: 8.812 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.1303, allocations: 23.92 kB / 339.3 MB, free: 8.789 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.66e-05/0.1304, allocations: 23.92 kB / 339.3 MB, free: 8.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6e-05/0.1304, allocations: 63.92 kB / 339.4 MB, free: 8.703 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004489/0.1309, allocations: 378.9 kB / 339.7 MB, free: 8.336 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1309, allocations: 0 / 339.7 MB, free: 8.336 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002734/0.1312, allocations: 44 kB / 339.8 MB, free: 8.293 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.0001661/0.1314, allocations: 118.9 kB / 339.9 MB, free: 8.168 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005971/0.132, allocations: 437.5 kB / 340.3 MB, free: 7.691 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.132, allocations: 4 kB / 340.3 MB, free: 7.688 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003669/0.1323, allocations: 373.8 kB / 340.7 MB, free: 7.273 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006678/0.133, allocations: 105.6 kB / 340.8 MB, free: 7.168 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.1343, allocations: 0.7699 MB / 341.6 MB, free: 6.375 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.1348, allocations: 0.7986 MB / 342.4 MB, free: 5.551 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.925e-05/0.1349, allocations: 16.64 kB / 342.4 MB, free: 5.535 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.205e-05/0.1349, allocations: 11.44 kB / 342.4 MB, free: 5.523 MB / 286.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1349, allocations: 0 / 342.4 MB, free: 5.523 MB / 286.1 MB Notification: Performance of Templates: time 0.007706/0.1426, allocations: 4.146 MB / 346.6 MB, free: 1.289 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches