Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_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.001391/0.001391, allocations: 115.5 kB / 17.7 MB, free: 5.438 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.001362/0.001362, allocations: 192 kB / 18.63 MB, free: 4.512 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.454/1.454, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 49.42 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1221, allocations: 49.45 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002903/0.1251, allocations: 1.493 MB / 353 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.1269, allocations: 0.8629 MB / 353.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.911e-05/0.127, allocations: 0 / 353.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.512e-05/0.1271, allocations: 3.938 kB / 353.9 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.545e-05/0.1272, allocations: 15.86 kB / 353.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.1274, allocations: 53.88 kB / 353.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.1277, allocations: 143.7 kB / 354.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.1278, allocations: 16.23 kB / 354.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005991/0.1284, allocations: 0.5654 MB / 354.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.1286, allocations: 71.77 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.731e-05/0.1286, allocations: 8 kB / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.14e-05/0.1286, allocations: 12 kB / 354.7 MB, free: 456 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.1287, allocations: 71.62 kB / 354.8 MB, free: 384 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.1289, allocations: 111.2 kB / 354.9 MB, free: 272 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004046/0.1293, allocations: 374.6 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.1293, allocations: 4 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1293, allocations: 0 / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1293, allocations: 0 / 355.3 MB, free: 15.89 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008154/0.1301, allocations: 0.7227 MB / 356 MB, free: 15.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1302, allocations: 8.031 kB / 356 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.1303, allocations: 40.47 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.1306, allocations: 274.3 kB / 356.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.1307, allocations: 8.375 kB / 356.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.1307, allocations: 8.375 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003249/0.131, allocations: 133.8 kB / 356.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1311, allocations: 4 kB / 356.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.1311, allocations: 4 kB / 356.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.1311, allocations: 4 kB / 356.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.1313, allocations: 55.97 kB / 356.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008748/0.1321, allocations: 464.5 kB / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.1323, allocations: 94.55 kB / 357.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.1325, allocations: 92.83 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.1325, allocations: 3.984 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000398/0.1329, allocations: 206.7 kB / 357.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/0.133, allocations: 0 / 357.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008133/0.1338, allocations: 475.8 kB / 357.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.1339, allocations: 170.2 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006413/0.1345, allocations: 0.5169 MB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.1346, allocations: 29.7 kB / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.581e-05/0.1347, allocations: 97.05 kB / 358.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.035e-05/0.1347, allocations: 27.64 kB / 358.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1348, allocations: 89.36 kB / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.135, allocations: 326.8 kB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.1351, allocations: 55.97 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.1352, allocations: 77.67 kB / 359.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003361/0.1356, allocations: 342.5 kB / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1356, allocations: 0 / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005385/0.1361, allocations: 396.5 kB / 359.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.1363, allocations: 126.8 kB / 360.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1363, allocations: 0 / 360.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.1363, allocations: 0 / 360.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.151e-05/0.1363, allocations: 4.031 kB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1363, allocations: 4 kB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.1365, allocations: 15.89 kB / 360.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-05/0.1366, allocations: 59.94 kB / 360.2 MB, free: 10.61 MB / 302.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.0003198/0.1369, allocations: 366.8 kB / 360.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.1369, allocations: 43.5 kB / 360.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.837e-05/0.137, allocations: 59.16 kB / 360.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.137, allocations: 4 kB / 360.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.1371, allocations: 0 / 360.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1371, allocations: 4 kB / 360.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008874/0.138, allocations: 0.8134 MB / 361.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.138, allocations: 4 kB / 361.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-06/0.138, allocations: 0 / 361.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.138, allocations: 3.984 kB / 361.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.138, allocations: 12 kB / 361.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.138, allocations: 0 / 361.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.138, allocations: 3.938 kB / 361.5 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006367/0.1387, allocations: 0.5484 MB / 362 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003268/0.139, allocations: 236.5 kB / 362.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.46e-05/0.1391, allocations: 12 kB / 362.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.1392, allocations: 11.98 kB / 362.3 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.1393, allocations: 31.91 kB / 362.3 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.1394, allocations: 60.06 kB / 362.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004499/0.1399, allocations: 382.9 kB / 362.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1399, allocations: 4 kB / 362.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002857/0.1402, allocations: 43.91 kB / 362.8 MB, free: 7.816 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: 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.0001487/0.1403, allocations: 126.9 kB / 362.9 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005378/0.1409, allocations: 445.1 kB / 363.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1409, allocations: 0 / 363.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003409/0.1412, allocations: 369.6 kB / 363.7 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005911/0.1418, allocations: 118.1 kB / 363.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.143, allocations: 0.6537 MB / 364.5 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.1435, allocations: 0.806 MB / 365.3 MB, free: 5.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.929e-05/0.1435, allocations: 12.64 kB / 365.3 MB, free: 5.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.1436, allocations: 11.44 kB / 365.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of SimCode: time 2.084e-06/0.1436, allocations: 0 / 365.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of Templates: time 0.008357/0.1519, allocations: 4.663 MB / 370 MB, free: 444 kB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches