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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001575/0.001575, allocations: 107.9 kB / 18.48 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 198.5 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 51.92 kB / 366.4 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1054, allocations: 52.14 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003126/0.1085, allocations: 1.503 MB / 420 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.1105, allocations: 0.8537 MB / 420.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.841e-05/0.1105, allocations: 0 / 420.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.887e-05/0.1106, allocations: 15.86 kB / 420.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.441e-05/0.1107, allocations: 19.84 kB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.1109, allocations: 47.89 kB / 420.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.1111, allocations: 127.7 kB / 421.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.966e-05/0.1112, allocations: 20.2 kB / 421.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009025/0.1121, allocations: 0.5732 MB / 421.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.1123, allocations: 79.62 kB / 421.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.738e-05/0.1123, allocations: 16 kB / 421.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.755e-05/0.1123, allocations: 8 kB / 421.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.742e-05/0.1124, allocations: 63.77 kB / 421.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.1126, allocations: 119.1 kB / 421.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004885/0.1131, allocations: 366.5 kB / 422.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.617e-06/0.1131, allocations: 7.922 kB / 422.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1131, allocations: 0 / 422.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1131, allocations: 4 kB / 422.3 MB, free: 8.742 MB / 350.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.0009762/0.114, allocations: 0.7227 MB / 423 MB, free: 7.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1141, allocations: 8.031 kB / 423 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.818e-05/0.1141, allocations: 8.188 kB / 423 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.811e-05/0.1142, allocations: 46.67 kB / 423.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.1143, allocations: 36.7 kB / 423.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.1146, allocations: 274.7 kB / 423.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.1146, allocations: 12.31 kB / 423.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.034e-05/0.1146, allocations: 8.375 kB / 423.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.115, allocations: 133.5 kB / 423.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.115, allocations: 0 / 423.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.115, allocations: 4 kB / 423.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.115, allocations: 8 kB / 423.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.1151, allocations: 59.91 kB / 423.6 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006493/0.1158, allocations: 464.5 kB / 424.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.116, allocations: 78.48 kB / 424.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.1161, allocations: 60.89 kB / 424.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.065e-05/0.1161, allocations: 0 / 424.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003611/0.1165, allocations: 206.7 kB / 424.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.1165, allocations: 0 / 424.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009509/0.1174, allocations: 488.2 kB / 424.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/0.1176, allocations: 166.2 kB / 425 MB, free: 5.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007012/0.1183, allocations: 0.513 MB / 425.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.1183, allocations: 33.64 kB / 425.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.1184, allocations: 105.1 kB / 425.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.641e-05/0.1185, allocations: 35.8 kB / 425.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.1186, allocations: 77.56 kB / 425.8 MB, free: 4.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.1188, allocations: 326.8 kB / 426.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.1189, allocations: 59.97 kB / 426.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.1191, allocations: 69.69 kB / 426.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005499/0.1196, allocations: 347.2 kB / 426.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1196, allocations: 4 kB / 426.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005686/0.1202, allocations: 391.4 kB / 427 MB, free: 3.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.883e-05/0.1203, allocations: 126.8 kB / 427.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.1203, allocations: 0 / 427.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1203, allocations: 0 / 427.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.937e-05/0.1203, allocations: 3.984 kB / 427.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1204, allocations: 4 kB / 427.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.1205, allocations: 8.125 kB / 427.1 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-05/0.1206, allocations: 63.92 kB / 427.2 MB, free: 3.434 MB / 350.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.0003616/0.1209, allocations: 362.8 kB / 427.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.427e-05/0.121, allocations: 35.77 kB / 427.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.1211, allocations: 71.14 kB / 427.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1211, allocations: 0 / 427.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.1211, allocations: 0 / 427.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1211, allocations: 0 / 427.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.1221, allocations: 0.825 MB / 428.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1221, allocations: 0 / 428.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.228e-06/0.1221, allocations: 0 / 428.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1221, allocations: 7.938 kB / 428.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.1222, allocations: 19.98 kB / 428.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1222, allocations: 3.938 kB / 428.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1222, allocations: 0 / 428.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000699/0.1229, allocations: 0.5293 MB / 429 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.1232, allocations: 256.6 kB / 429.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.331e-05/0.1233, allocations: 11.94 kB / 429.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.1234, allocations: 15.92 kB / 429.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.1235, allocations: 31.97 kB / 429.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.1236, allocations: 59.92 kB / 429.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004631/0.1241, allocations: 386.9 kB / 429.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1241, allocations: 0 / 429.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003682/0.1245, allocations: 44 kB / 429.8 MB, free: 0.6289 MB / 350.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.001099/0.1256, allocations: 1.098 MB / 430.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005127/0.1261, allocations: 381.5 kB / 431.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1261, allocations: 0 / 431.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.1264, allocations: 301.6 kB / 431.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005915/0.127, allocations: 116.1 kB / 431.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003785/0.1308, allocations: 2.764 MB / 434.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005018/0.1313, allocations: 0.8058 MB / 435.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.575e-05/0.1313, allocations: 12.64 kB / 435.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.575e-05/0.1314, allocations: 23.44 kB / 435.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1314, allocations: 0 / 435.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0248/0.1562, allocations: 6.1 MB / 441.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/8.093, allocations: 8 kB / 441.4 MB, free: 4.789 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --stepSize=0.0023933 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.588420891028363] Failed to read output from testmodel.py, exit status != 0: ['time', 'nXFERGATE.y'] 8.214653751987498 8.384520167 8.269504408 Calling exit ...