Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.JSONTest.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.001735/0.001735, allocations: 103.6 kB / 18.95 MB, free: 2.688 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.002221/0.002221, allocations: 216.8 kB / 22.24 MB, free: 5.242 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.467/1.467, allocations: 230.6 MB / 256 MB, free: 7.797 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.0153/0.0153, allocations: 3.284 MB / 315.7 MB, free: 15.61 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.JSONTest,fileNamePrefix="ExternData_ExternData_Examples_JSONTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.JSONTest,fileNamePrefix="ExternData_ExternData_Examples_JSONTest",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.002137/0.002137, allocations: 71.91 kB / 439.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09384/0.09597, allocations: 54.38 MB / 493.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003862/0.09983, allocations: 1.702 MB / 495.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.103, allocations: 1.714 MB / 497.3 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.1031, allocations: 0 / 497.3 MB, free: 2.023 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:86:3-121:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0005141/0.1036, allocations: 35.78 kB / 497.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006599/0.1043, allocations: 127.4 kB / 497.5 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004057/0.1047, allocations: 87.77 kB / 497.5 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.105, allocations: 87.72 kB / 497.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.1051, allocations: 12.22 kB / 497.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.1052, allocations: 35.86 kB / 497.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.1054, allocations: 43.77 kB / 497.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.1054, allocations: 11.94 kB / 497.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004082/0.1058, allocations: 179.8 kB / 497.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.916e-05/0.1059, allocations: 19.92 kB / 497.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.966e-05/0.106, allocations: 39.78 kB / 498 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005719/0.1066, allocations: 239.2 kB / 498.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1066, allocations: 4 kB / 498.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1066, allocations: 0 / 498.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1066, allocations: 0 / 498.2 MB, free: 1.113 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.0007658/0.1073, allocations: 407 kB / 498.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1074, allocations: 8.031 kB / 498.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.637e-05/0.1074, allocations: 34.75 kB / 498.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.728e-05/0.1075, allocations: 12.88 kB / 498.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.1078, allocations: 154.3 kB / 498.8 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.1078, allocations: 8.375 kB / 498.8 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.1078, allocations: 7.938 kB / 498.8 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.1081, allocations: 125 kB / 498.9 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1081, allocations: 3.984 kB / 498.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1081, allocations: 4 kB / 498.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1081, allocations: 4 kB / 498.9 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.1083, allocations: 77.67 kB / 499 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004916/0.1088, allocations: 288.6 kB / 499.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.1091, allocations: 119 kB / 499.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.1093, allocations: 79.44 kB / 499.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.1093, allocations: 7.984 kB / 499.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.1096, allocations: 172.5 kB / 499.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.1096, allocations: 0 / 499.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006577/0.1102, allocations: 298.6 kB / 500 MB, free: 15.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.374e-05/0.1103, allocations: 110.8 kB / 0.4884 GB, free: 14.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.1105, allocations: 161 kB / 0.4885 GB, free: 14.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.1105, allocations: 29.7 kB / 0.4885 GB, free: 14.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.927e-05/0.1106, allocations: 96.14 kB / 0.4886 GB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.339e-05/0.1106, allocations: 27.73 kB / 0.4887 GB, free: 14.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.061e-05/0.1107, allocations: 33.7 kB / 0.4887 GB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1109, allocations: 318.8 kB / 0.489 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.111, allocations: 69.67 kB / 0.4891 GB, free: 14.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.1111, allocations: 83.39 kB / 0.4891 GB, free: 14.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.1113, allocations: 161 kB / 0.4893 GB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1113, allocations: 0 / 0.4893 GB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003661/0.1117, allocations: 232.9 kB / 0.4895 GB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.723e-05/0.1118, allocations: 37.69 kB / 0.4895 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1118, allocations: 0 / 0.4895 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.1118, allocations: 4 kB / 0.4896 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.244e-05/0.1119, allocations: 15.98 kB / 0.4896 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.1119, allocations: 0 / 0.4896 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.25e-05/0.1119, allocations: 19.83 kB / 0.4896 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.112, allocations: 8 kB / 0.4896 GB, free: 13.61 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.0001539/0.1121, allocations: 155.5 kB / 0.4897 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.1122, allocations: 15.95 kB / 0.4898 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.553e-05/0.1122, allocations: 16.7 kB / 0.4898 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1122, allocations: 0 / 0.4898 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.1122, allocations: 0 / 0.4898 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.1122, allocations: 3.938 kB / 0.4898 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.1124, allocations: 172.6 kB / 0.4899 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1124, allocations: 0 / 0.4899 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.538e-05/0.1125, allocations: 8 kB / 0.4899 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1125, allocations: 0 / 0.4899 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.1125, allocations: 7.984 kB / 0.49 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1125, allocations: 0 / 0.49 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1125, allocations: 8 kB / 0.49 GB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000423/0.1129, allocations: 277.2 kB / 0.4902 GB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.1129, allocations: 19.94 kB / 0.4902 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.113, allocations: 8 kB / 0.4903 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.13e-05/0.1131, allocations: 11.92 kB / 0.4903 GB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.1131, allocations: 7.938 kB / 0.4903 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.1131, allocations: 7.984 kB / 0.4903 GB, free: 12.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1132, allocations: 123.2 kB / 0.4904 GB, free: 12.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1132, allocations: 0 / 0.4904 GB, free: 12.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.1136, allocations: 79.8 kB / 0.4905 GB, free: 12.61 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.00179/0.1154, allocations: 1.107 MB / 0.4916 GB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003619/0.1158, allocations: 230.7 kB / 0.4918 GB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1158, allocations: 0 / 0.4918 GB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.1159, allocations: 145 kB / 0.4919 GB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.1162, allocations: 23.8 kB / 0.4919 GB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.1189, allocations: 2.05 MB / 0.4939 GB, free: 8.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.89e-05/0.119, allocations: 85.5 kB / 0.494 GB, free: 8.836 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.525e-05/0.119, allocations: 20.41 kB / 0.494 GB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.415e-05/0.1191, allocations: 39.41 kB / 0.4941 GB, free: 8.777 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1191, allocations: 0 / 0.4941 GB, free: 8.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03485/0.154, allocations: 4.931 MB / 0.4989 GB, free: 3.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.28, allocations: 0 / 0.4989 GB, free: 3.891 MB / 366.1 MB " [Timeout remaining time 649] (rm -f ExternData_ExternData.Examples.JSONTest.pipe ; mkfifo ExternData_ExternData.Examples.JSONTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.JSONTest.pipe >> ../files/ExternData_ExternData.Examples.JSONTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_JSONTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_JSONTest.fmu > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.846640134230256] Failed to read output from testmodel.py, exit status != 0: 11.400237678084522 11.41790359 11.30816309 Calling exit ...