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.001183/0.001189, allocations: 107.4 kB / 16.92 MB, free: 6.141 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.001411/0.001411, allocations: 191.3 kB / 17.85 MB, free: 5.309 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.539/1.539, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 46.95 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1073, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.003704/0.111, allocations: 1.505 MB / 351.7 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.113, allocations: 0.8512 MB / 352.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.531e-05/0.1131, allocations: 0 / 352.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.639e-05/0.1132, allocations: 7.922 kB / 352.5 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.1133, allocations: 23.84 kB / 352.6 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.1137, allocations: 43.91 kB / 352.6 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.114, allocations: 143.7 kB / 352.7 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.1141, allocations: 24.22 kB / 352.8 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000684/0.1148, allocations: 0.5654 MB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.115, allocations: 63.77 kB / 353.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.708e-05/0.1151, allocations: 16 kB / 353.4 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.946e-05/0.1151, allocations: 8 kB / 353.4 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.1152, allocations: 67.7 kB / 353.5 MB, free: 1 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.1154, allocations: 119.2 kB / 353.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003517/0.1157, allocations: 362.7 kB / 353.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1157, allocations: 4 kB / 353.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1157, allocations: 0 / 353.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.1158, allocations: 0 / 353.9 MB, free: 0.5234 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008449/0.1166, allocations: 0.723 MB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.1167, allocations: 12.03 kB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.455e-05/0.1167, allocations: 42.75 kB / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.928e-05/0.1168, allocations: 36.47 kB / 354.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.1171, allocations: 274.3 kB / 355 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.1171, allocations: 4.375 kB / 355 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.1172, allocations: 8.375 kB / 355 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003145/0.1175, allocations: 133.7 kB / 355.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.1175, allocations: 0 / 355.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.1175, allocations: 8 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1175, allocations: 4 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000148/0.1177, allocations: 63.94 kB / 355.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006637/0.1184, allocations: 452.6 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001839/0.1186, allocations: 94.48 kB / 355.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.1187, allocations: 92.88 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.716e-06/0.1188, allocations: 4 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003596/0.1191, allocations: 210.7 kB / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.1191, allocations: 0 / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008159/0.12, allocations: 479.5 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.1201, allocations: 170.2 kB / 356.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006787/0.1208, allocations: 0.517 MB / 357.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.1208, allocations: 37.58 kB / 357.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.219e-05/0.1209, allocations: 105 kB / 357.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.299e-05/0.1209, allocations: 23.66 kB / 357.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.1211, allocations: 89.41 kB / 357.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1212, allocations: 326.8 kB / 357.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.1213, allocations: 55.97 kB / 357.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.1215, allocations: 73.62 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.1218, allocations: 343.3 kB / 358.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1219, allocations: 0 / 358.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006224/0.1225, allocations: 400.2 kB / 358.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.943e-05/0.1226, allocations: 122.8 kB / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1226, allocations: 0 / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1226, allocations: 0 / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.863e-05/0.1226, allocations: 0 / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1226, allocations: 0 / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.1228, allocations: 15.98 kB / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-05/0.1229, allocations: 59.94 kB / 358.8 MB, free: 11.19 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.0003286/0.1232, allocations: 366.9 kB / 359.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.42e-05/0.1233, allocations: 35.62 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001061/0.1234, allocations: 67.12 kB / 359.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1234, allocations: 4 kB / 359.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1234, allocations: 0 / 359.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1234, allocations: 0 / 359.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009551/0.1244, allocations: 0.8173 MB / 360.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1244, allocations: 4 kB / 360.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.109e-06/0.1244, allocations: 4 kB / 360.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.1244, allocations: 0 / 360.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/0.1244, allocations: 12 kB / 360.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.1244, allocations: 3.984 kB / 360.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1245, allocations: 3.938 kB / 360.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006406/0.1251, allocations: 0.5396 MB / 360.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003/0.1254, allocations: 244.4 kB / 360.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.053e-05/0.1255, allocations: 11.98 kB / 360.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.1256, allocations: 16 kB / 361 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.1257, allocations: 27.91 kB / 361 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-05/0.1258, allocations: 56 kB / 361 MB, free: 8.816 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004634/0.1263, allocations: 390.8 kB / 361.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1263, allocations: 4 kB / 361.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.1266, allocations: 43.94 kB / 361.5 MB, free: 8.391 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.0009778/0.1276, allocations: 1.092 MB / 362.6 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005258/0.1281, allocations: 445.7 kB / 363 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.1281, allocations: 0 / 363 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003142/0.1285, allocations: 381.5 kB / 363.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006438/0.1291, allocations: 119.8 kB / 363.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.1325, allocations: 2.741 MB / 366.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.1329, allocations: 0.8138 MB / 367 MB, free: 2.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.37e-05/0.133, allocations: 4.672 kB / 367 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.788e-05/0.133, allocations: 27.42 kB / 367.1 MB, free: 2.504 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.133, allocations: 0 / 367.1 MB, free: 2.504 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1912/0.3243, allocations: 5.983 MB / 373.1 MB, free: 26.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.545/7.869, allocations: 7.672 kB / 373.1 MB, free: 26.02 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