Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 207.8 kB / 22.24 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01673/0.01673, allocations: 3.283 MB / 315.7 MB, free: 15.74 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 67.89 kB / 439.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1034, allocations: 54.38 MB / 493.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.004815/0.1082, allocations: 1.667 MB / 495.5 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003515/0.1117, allocations: 1.687 MB / 497.2 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.861e-05/0.1118, allocations: 7.938 kB / 497.2 MB, free: 2.215 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:238:3-267:14:writable] Warning: Pure function 'ExternData.XMLFile' contains a call to impure function 'ExternData.Types.ExternXMLFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003952/0.1122, allocations: 39.78 kB / 497.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005085/0.1127, allocations: 115.5 kB / 497.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.113, allocations: 87.78 kB / 497.5 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.1132, allocations: 91.7 kB / 497.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.493e-05/0.1133, allocations: 8.219 kB / 497.6 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.898e-05/0.1134, allocations: 39.86 kB / 497.6 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.1136, allocations: 43.77 kB / 497.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.1136, allocations: 4 kB / 497.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000381/0.114, allocations: 187.8 kB / 497.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.407e-05/0.114, allocations: 15.94 kB / 497.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.637e-05/0.1141, allocations: 39.78 kB / 497.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005448/0.1147, allocations: 239.2 kB / 498.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1147, allocations: 0 / 498.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1147, allocations: 0 / 498.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1147, allocations: 0 / 498.1 MB, free: 1.316 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007507/0.1154, allocations: 411 kB / 498.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1155, allocations: 12.03 kB / 498.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.42e-05/0.1155, allocations: 34.73 kB / 498.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.95e-05/0.1156, allocations: 16.83 kB / 498.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.1159, allocations: 154.3 kB / 498.7 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.1159, allocations: 384 / 498.7 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.865e-05/0.1159, allocations: 7.938 kB / 498.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002749/0.1162, allocations: 137 kB / 498.9 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1162, allocations: 0 / 498.9 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.1162, allocations: 7.984 kB / 498.9 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1162, allocations: 0 / 498.9 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.1164, allocations: 81.67 kB / 499 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004676/0.1169, allocations: 284.7 kB / 499.3 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.1172, allocations: 119 kB / 499.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.1173, allocations: 83.38 kB / 499.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.1173, allocations: 0 / 499.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002488/0.1176, allocations: 168.5 kB / 499.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.1176, allocations: 0 / 499.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006009/0.1182, allocations: 306.6 kB / 499.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.482e-05/0.1182, allocations: 110.8 kB / 0.4883 GB, free: 15.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.1184, allocations: 161.7 kB / 0.4885 GB, free: 15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.1184, allocations: 29.7 kB / 0.4885 GB, free: 14.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.294e-05/0.1185, allocations: 100.1 kB / 0.4886 GB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.376e-05/0.1186, allocations: 23.81 kB / 0.4886 GB, free: 14.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.356e-05/0.1186, allocations: 25.7 kB / 0.4886 GB, free: 14.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1188, allocations: 326.8 kB / 0.4889 GB, free: 14.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.1189, allocations: 69.69 kB / 0.489 GB, free: 14.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.119, allocations: 87.33 kB / 0.4891 GB, free: 14.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.1192, allocations: 149.1 kB / 0.4892 GB, free: 14.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1192, allocations: 0 / 0.4892 GB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003608/0.1196, allocations: 232.9 kB / 0.4895 GB, free: 13.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.564e-05/0.1196, allocations: 37.69 kB / 0.4895 GB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1196, allocations: 0 / 0.4895 GB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.1196, allocations: 0 / 0.4895 GB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.217e-05/0.1197, allocations: 19.98 kB / 0.4895 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.1197, allocations: 0 / 0.4895 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.287e-05/0.1198, allocations: 27.7 kB / 0.4895 GB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.1198, allocations: 4 kB / 0.4895 GB, free: 13.8 MB / 366.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: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$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): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001471/0.12, allocations: 158.5 kB / 0.4897 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.656e-05/0.12, allocations: 15.94 kB / 0.4897 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/0.12, allocations: 8.719 kB / 0.4897 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.12, allocations: 4 kB / 0.4897 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.12, allocations: 0 / 0.4897 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.12, allocations: 3.938 kB / 0.4897 GB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.1202, allocations: 176.7 kB / 0.4899 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1202, allocations: 0 / 0.4899 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.48e-05/0.1203, allocations: 8 kB / 0.4899 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.1203, allocations: 3.984 kB / 0.4899 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.1203, allocations: 4.328 kB / 0.4899 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1203, allocations: 0 / 0.4899 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1203, allocations: 0 / 0.4899 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004193/0.1207, allocations: 285.2 kB / 0.4902 GB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.251e-05/0.1208, allocations: 23.88 kB / 0.4902 GB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/0.1208, allocations: 11.98 kB / 0.4902 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.846e-05/0.1209, allocations: 11.94 kB / 0.4902 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.1209, allocations: 11.92 kB / 0.4902 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.1209, allocations: 8 kB / 0.4902 GB, free: 12.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.121, allocations: 118.3 kB / 0.4904 GB, free: 12.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.121, allocations: 0 / 0.4904 GB, free: 12.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003437/0.1214, allocations: 83.75 kB / 0.4904 GB, free: 12.8 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.002025/0.1234, allocations: 1.135 MB / 0.4915 GB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003736/0.1238, allocations: 226.8 kB / 0.4918 GB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1238, allocations: 3.938 kB / 0.4918 GB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.124, allocations: 141.1 kB / 0.4919 GB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.1242, allocations: 23.73 kB / 0.4919 GB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.127, allocations: 2.054 MB / 0.4939 GB, free: 9.121 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001003/0.1271, allocations: 85.5 kB / 0.494 GB, free: 9.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.213e-05/0.1271, allocations: 16.41 kB / 0.494 GB, free: 9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.005e-05/0.1272, allocations: 39.42 kB / 0.4941 GB, free: 8.961 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1272, allocations: 0 / 0.4941 GB, free: 8.961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03808/0.1653, allocations: 4.992 MB / 0.4989 GB, free: 4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.19, allocations: 7.922 kB / 0.4989 GB, free: 3.992 MB / 366.1 MB " [Timeout remaining time 649] (rm -f ExternData_ExternData.Examples.XMLTest.pipe ; mkfifo ExternData_ExternData.Examples.XMLTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTest.pipe >> ../files/ExternData_ExternData.Examples.XMLTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.699395562987775] Failed to read output from testmodel.py, exit status != 0: 11.308521509170532 11.325676983 11.207531932 Calling exit ...