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.001602/0.001602, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001931/0.001931, allocations: 214.2 kB / 22.24 MB, free: 5.262 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.469/1.469, allocations: 230.6 MB / 256 MB, free: 7.742 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.01768/0.01768, allocations: 3.275 MB / 315.7 MB, free: 15.59 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.002015/0.002015, allocations: 63.91 kB / 439.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09896/0.101, allocations: 54.39 MB / 493.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003352/0.1043, allocations: 1.701 MB / 495.6 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0027/0.107, allocations: 1.71 MB / 497.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.425e-05/0.1071, allocations: 4 kB / 497.3 MB, free: 1.988 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.0003188/0.1074, allocations: 35.78 kB / 497.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003791/0.1078, allocations: 127.4 kB / 497.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.108, allocations: 83.78 kB / 497.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000143/0.1082, allocations: 91.69 kB / 497.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.673e-05/0.1082, allocations: 8.234 kB / 497.6 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.321e-05/0.1083, allocations: 39.86 kB / 497.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.1085, allocations: 31.83 kB / 497.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.1085, allocations: 12 kB / 497.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002929/0.1088, allocations: 183.8 kB / 497.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.979e-05/0.1088, allocations: 27.86 kB / 497.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.119e-05/0.1089, allocations: 35.8 kB / 498 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003691/0.1093, allocations: 235.3 kB / 498.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1093, allocations: 0 / 498.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1093, allocations: 3.938 kB / 498.2 MB, free: 1.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1093, allocations: 0 / 498.2 MB, free: 1.086 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.0006645/0.1099, allocations: 411 kB / 498.6 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.11, allocations: 15.95 kB / 498.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.578e-05/0.11, allocations: 38.75 kB / 498.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.311e-05/0.1101, allocations: 8.891 kB / 498.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1104, allocations: 150.3 kB / 498.8 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.1104, allocations: 8.375 kB / 498.8 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.1104, allocations: 7.938 kB / 498.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.1107, allocations: 125.1 kB / 498.9 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1107, allocations: 3.938 kB / 498.9 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.1107, allocations: 0 / 498.9 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1107, allocations: 4 kB / 498.9 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.1108, allocations: 85.67 kB / 499 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004268/0.1113, allocations: 280.7 kB / 499.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.1115, allocations: 118.9 kB / 499.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.1116, allocations: 83.39 kB / 499.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.1117, allocations: 0 / 499.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.1119, allocations: 172.4 kB / 499.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.021e-06/0.1119, allocations: 0 / 499.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.000529/0.1124, allocations: 307 kB / 500 MB, free: 15.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.1125, allocations: 110.8 kB / 0.4884 GB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.1127, allocations: 161 kB / 0.4885 GB, free: 14.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.1127, allocations: 25.7 kB / 0.4885 GB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.427e-05/0.1128, allocations: 96.12 kB / 0.4886 GB, free: 14.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.1128, allocations: 27.75 kB / 0.4887 GB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.1129, allocations: 29.7 kB / 0.4887 GB, free: 14.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.113, allocations: 330.8 kB / 0.489 GB, free: 14.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.1131, allocations: 65.69 kB / 0.4891 GB, free: 14.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.1133, allocations: 87.33 kB / 0.4891 GB, free: 14.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002095/0.1135, allocations: 161 kB / 0.4893 GB, free: 13.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1135, allocations: 0 / 0.4893 GB, free: 13.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003436/0.1138, allocations: 232.9 kB / 0.4895 GB, free: 13.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.1138, allocations: 33.7 kB / 0.4896 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1139, allocations: 4 kB / 0.4896 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.1139, allocations: 0 / 0.4896 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.85e-05/0.1139, allocations: 11.98 kB / 0.4896 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.1139, allocations: 0 / 0.4896 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.958e-05/0.114, allocations: 19.89 kB / 0.4896 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.114, allocations: 11.98 kB / 0.4896 GB, free: 13.58 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.0001507/0.1142, allocations: 159.5 kB / 0.4898 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.1142, allocations: 15.89 kB / 0.4898 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.1142, allocations: 12.72 kB / 0.4898 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1142, allocations: 0 / 0.4898 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.1142, allocations: 0 / 0.4898 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1143, allocations: 7.938 kB / 0.4898 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.1144, allocations: 168.6 kB / 0.4899 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1144, allocations: 0 / 0.4899 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.042e-05/0.1145, allocations: 19.98 kB / 0.49 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1145, allocations: 0 / 0.49 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.1145, allocations: 4 kB / 0.49 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1145, allocations: 4 kB / 0.49 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1145, allocations: 0 / 0.49 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003977/0.1149, allocations: 281.2 kB / 0.4902 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.1149, allocations: 15.94 kB / 0.4903 GB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.115, allocations: 4 kB / 0.4903 GB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.774e-05/0.115, allocations: 8 kB / 0.4903 GB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.1151, allocations: 11.92 kB / 0.4903 GB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.1151, allocations: 8 kB / 0.4903 GB, free: 12.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001036/0.1152, allocations: 127.1 kB / 0.4904 GB, free: 12.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1152, allocations: 4 kB / 0.4904 GB, free: 12.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.1155, allocations: 75.8 kB / 0.4905 GB, free: 12.57 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.001716/0.1172, allocations: 1.099 MB / 0.4916 GB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003549/0.1176, allocations: 222.7 kB / 0.4918 GB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1176, allocations: 4 kB / 0.4918 GB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.1178, allocations: 145 kB / 0.4919 GB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.118, allocations: 27.78 kB / 0.4919 GB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.1205, allocations: 2.054 MB / 0.4939 GB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.66e-05/0.1206, allocations: 85.48 kB / 0.494 GB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.293e-05/0.1206, allocations: 16.42 kB / 0.494 GB, free: 8.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.971e-05/0.1207, allocations: 31.42 kB / 0.4941 GB, free: 8.754 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1207, allocations: 0 / 0.4941 GB, free: 8.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03204/0.1527, allocations: 4.945 MB / 0.4989 GB, free: 3.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.37, allocations: 8 kB / 0.4989 GB, free: 3.848 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 & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.JSONTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_JSONTest.fmu > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.046420159749687] Failed to read output from testmodel.py, exit status != 0: 11.478994482196867 11.495384555 11.382984347 Calling exit ...