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.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/package.mo", uses=false) Using package ExternData with version 3.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/package.mo) 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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001325/0.001325, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/package.mo): time 0.1743/0.1743, allocations: 2.946 MB / 294 MB, free: 3.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002994, allocations: 8 kB / 356 MB, free: 3.582 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1081, allocations: 51.34 MB / 407.3 MB, free: 188 kB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.001992/0.1101, allocations: 1.393 MB / 408.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.1123, allocations: 1.518 MB / 410.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.687e-05/0.1124, allocations: 3.938 kB / 410.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.1127, allocations: 31.84 kB / 410.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.1129, allocations: 99.72 kB / 410.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.1132, allocations: 55.88 kB / 410.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.1133, allocations: 71.77 kB / 410.5 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.032e-05/0.1134, allocations: 12.2 kB / 410.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.761e-05/0.1134, allocations: 39.86 kB / 410.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.1136, allocations: 31.84 kB / 410.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.1136, allocations: 7.938 kB / 410.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00028/0.1139, allocations: 179.8 kB / 410.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.371e-05/0.114, allocations: 19.92 kB / 410.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.114, allocations: 37.7 kB / 410.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.1143, allocations: 163.7 kB / 411 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1143, allocations: 7.938 kB / 411 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1143, allocations: 0 / 411 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.1143, allocations: 0 / 411 MB, free: 12.5 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.0005697/0.1149, allocations: 468.6 kB / 411.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1149, allocations: 8.031 kB / 411.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.859e-05/0.115, allocations: 38.55 kB / 411.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.246e-05/0.115, allocations: 7.906 kB / 411.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.1152, allocations: 202.8 kB / 411.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.1153, allocations: 4 kB / 411.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.1153, allocations: 4 kB / 411.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.1155, allocations: 103.3 kB / 411.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.1155, allocations: 0 / 411.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.1155, allocations: 8 kB / 411.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1155, allocations: 0 / 411.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.1157, allocations: 51.97 kB / 411.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003909/0.1161, allocations: 317.7 kB / 412.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.1163, allocations: 105.2 kB / 412.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.755e-05/0.1164, allocations: 57.91 kB / 412.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.1164, allocations: 7.984 kB / 412.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.1167, allocations: 142.7 kB / 412.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 2.785e-06/0.1167, allocations: 0 / 412.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000444/0.1171, allocations: 247 kB / 412.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/0.1172, allocations: 114.8 kB / 412.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.1174, allocations: 152.1 kB / 413 MB, free: 10.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.1174, allocations: 29.69 kB / 413 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.1174, allocations: 100 kB / 413.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.1175, allocations: 27.61 kB / 413.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.1175, allocations: 4 kB / 413.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1176, allocations: 326.8 kB / 413.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.1177, allocations: 35.98 kB / 413.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.984e-05/0.1178, allocations: 53.69 kB / 413.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.447e-05/0.1179, allocations: 69.62 kB / 413.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.118, allocations: 4 kB / 413.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002807/0.1182, allocations: 187.2 kB / 413.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/0.1183, allocations: 41.69 kB / 413.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1183, allocations: 0 / 413.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1183, allocations: 7.953 kB / 413.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.84e-05/0.1184, allocations: 8 kB / 413.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.1184, allocations: 0 / 413.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.528e-05/0.1185, allocations: 19.83 kB / 413.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.1185, allocations: 4 kB / 413.9 MB, free: 9.293 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: 7 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.1186, allocations: 159.5 kB / 414 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.23e-05/0.1187, allocations: 11.91 kB / 414 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.709e-05/0.1187, allocations: 12.72 kB / 414 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1187, allocations: 3.953 kB / 414 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1187, allocations: 4 kB / 414 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1187, allocations: 3.984 kB / 414 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001604/0.1189, allocations: 205.5 kB / 414.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1189, allocations: 3.938 kB / 414.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.689e-05/0.1189, allocations: 19.92 kB / 414.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.119, allocations: 4 kB / 414.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.119, allocations: 4 kB / 414.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.119, allocations: 4 kB / 414.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.119, allocations: 3.953 kB / 414.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.1193, allocations: 243.5 kB / 414.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.507e-05/0.1194, allocations: 96.94 kB / 414.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.1195, allocations: 7.938 kB / 414.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.69e-05/0.1195, allocations: 11.98 kB / 414.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.1196, allocations: 7.953 kB / 414.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.1196, allocations: 12.25 kB / 414.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1197, allocations: 125.8 kB / 414.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1197, allocations: 0 / 414.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003004/0.12, allocations: 75.92 kB / 414.9 MB, free: 8.184 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00132/0.1214, allocations: 1.073 MB / 415.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002982/0.1217, allocations: 199.3 kB / 416.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1217, allocations: 0 / 416.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.1218, allocations: 139.3 kB / 416.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.1221, allocations: 15.95 kB / 416.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.1234, allocations: 0.8244 MB / 417.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.1236, allocations: 0.7043 MB / 417.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.204e-05/0.1237, allocations: 16.61 kB / 417.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.038e-05/0.1238, allocations: 31.42 kB / 417.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1238, allocations: 3.938 kB / 417.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.1391, allocations: 3.834 MB / 421.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/0.1394, allocations: 234.1 kB / 421.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/1.964, allocations: 4 kB / 421.9 MB, free: 1.168 MB / 350.1 MB (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/linux/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_JSONTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_JSONTest.fmu > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) Environment - environmentSimulation: