Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.001123/0.001123, allocations: 175.2 kB / 17.56 MB, free: 6.18 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.487/1.487, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003029, allocations: 8 kB / 301.5 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1293, allocations: 50.41 MB / 351.9 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.00208/0.1315, allocations: 1.223 MB / 353.2 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.1335, allocations: 0.8624 MB / 354 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.621e-05/0.1336, allocations: 0 / 354 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.547e-05/0.1337, allocations: 7.875 kB / 354 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.553e-05/0.1338, allocations: 11.92 kB / 354 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.1341, allocations: 47.89 kB / 354.1 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.1343, allocations: 111.8 kB / 354.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.1344, allocations: 16.23 kB / 354.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006671/0.1351, allocations: 0.5615 MB / 354.8 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.1352, allocations: 67.69 kB / 354.8 MB, free: 464 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.1353, allocations: 4 kB / 354.9 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.838e-05/0.1353, allocations: 4 kB / 354.9 MB, free: 456 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.75e-05/0.1354, allocations: 59.77 kB / 354.9 MB, free: 396 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.1356, allocations: 132.8 kB / 355 MB, free: 256 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003956/0.136, allocations: 358.6 kB / 355.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.136, allocations: 0 / 355.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.136, allocations: 0 / 355.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.136, allocations: 0 / 355.4 MB, free: 15.9 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.0008861/0.1369, allocations: 0.6571 MB / 356.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.137, allocations: 12.03 kB / 356.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.884e-05/0.1371, allocations: 38.73 kB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.169e-05/0.1372, allocations: 36.47 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.1376, allocations: 278.3 kB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.1376, allocations: 12.38 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.1376, allocations: 4.375 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003698/0.138, allocations: 129.7 kB / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.138, allocations: 8 kB / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.1381, allocations: 4 kB / 356.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.1381, allocations: 4 kB / 356.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001595/0.1382, allocations: 55.97 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007943/0.1391, allocations: 464.5 kB / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.1393, allocations: 98.55 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.1394, allocations: 84.89 kB / 357.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.1395, allocations: 0 / 357.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003781/0.1398, allocations: 210.5 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.362e-06/0.1399, allocations: 0 / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008867/0.1407, allocations: 476.1 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.1409, allocations: 166.2 kB / 358.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007613/0.1416, allocations: 0.5169 MB / 358.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.1417, allocations: 29.7 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.952e-05/0.1418, allocations: 109.1 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.842e-05/0.1418, allocations: 31.58 kB / 358.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.824e-05/0.1419, allocations: 21.72 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1421, allocations: 326.8 kB / 359.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.1422, allocations: 55.97 kB / 359.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.1424, allocations: 81.61 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.1427, allocations: 351 kB / 359.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1427, allocations: 4 kB / 359.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005799/0.1433, allocations: 376.3 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.872e-05/0.1434, allocations: 126.8 kB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1434, allocations: 0 / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.1435, allocations: 3.984 kB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.704e-05/0.1435, allocations: 7.938 kB / 360.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.1435, allocations: 0 / 360.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.1437, allocations: 23.92 kB / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.69e-05/0.1438, allocations: 59.94 kB / 360.2 MB, free: 10.69 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.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.yy,nRXFERGATE.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.0003844/0.1442, allocations: 362.7 kB / 360.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.638e-05/0.1443, allocations: 35.62 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.1444, allocations: 67.14 kB / 360.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.1444, allocations: 4 kB / 360.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1444, allocations: 0 / 360.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.1444, allocations: 0 / 360.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.1455, allocations: 0.8173 MB / 361.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1455, allocations: 0 / 361.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.435e-06/0.1455, allocations: 4.188 kB / 361.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.523e-06/0.1455, allocations: 7.984 kB / 361.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.1455, allocations: 8 kB / 361.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1455, allocations: 4 kB / 361.5 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1455, allocations: 3.938 kB / 361.5 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006961/0.1462, allocations: 0.5407 MB / 362 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003273/0.1466, allocations: 244.5 kB / 362.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/0.1467, allocations: 8 kB / 362.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.1468, allocations: 15.98 kB / 362.3 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.1469, allocations: 27.91 kB / 362.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-05/0.147, allocations: 56 kB / 362.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005042/0.1475, allocations: 390.8 kB / 362.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.953e-06/0.1475, allocations: 0 / 362.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.1478, allocations: 51.78 kB / 362.8 MB, free: 7.883 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.001053/0.1489, allocations: 1.1 MB / 363.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005447/0.1494, allocations: 433.5 kB / 364.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1495, allocations: 0 / 364.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003438/0.1498, allocations: 377.6 kB / 364.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006546/0.1505, allocations: 112.6 kB / 364.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003645/0.1541, allocations: 2.818 MB / 367.6 MB, free: 2.805 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/0.1546, allocations: 0.7986 MB / 368.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.8e-05/0.1547, allocations: 8.656 kB / 368.4 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.63e-05/0.1548, allocations: 23.44 kB / 368.4 MB, free: 1.949 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1548, allocations: 0 / 368.4 MB, free: 1.949 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.221/0.3757, allocations: 5.303 MB / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002452/0.376, allocations: 187.7 kB / 373.9 MB, free: 23.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.085/2.461, allocations: 1.406 kB / 373.9 MB, free: 23.25 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches