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.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-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.001215/0.001215, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1299/0.1299, allocations: 2.932 MB / 293.3 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 64.12 kB / 354.8 MB, free: 3.672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08687/0.08815, allocations: 50.35 MB / 405.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002836/0.09102, allocations: 1.686 MB / 406.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.09309, allocations: 1.623 MB / 408.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.095e-05/0.09318, allocations: 4 kB / 408.4 MB, free: 13.95 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:104:3-139:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.09349, allocations: 39.78 kB / 408.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003202/0.09382, allocations: 123.4 kB / 408.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.09406, allocations: 83.72 kB / 408.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.09421, allocations: 91.81 kB / 408.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.861e-05/0.09431, allocations: 20.2 kB / 408.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.225e-05/0.09439, allocations: 39.8 kB / 408.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.09457, allocations: 39.83 kB / 408.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.0946, allocations: 4 kB / 408.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00029/0.0949, allocations: 199.8 kB / 409.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.3e-05/0.09497, allocations: 19.92 kB / 409.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.645e-05/0.09504, allocations: 51.66 kB / 409.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.09537, allocations: 231.5 kB / 409.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.09539, allocations: 0 / 409.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.0954, allocations: 0 / 409.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.09541, allocations: 4 kB / 409.4 MB, free: 13.02 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.0006789/0.09609, allocations: 476.8 kB / 409.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.09614, allocations: 11.89 kB / 409.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.672e-05/0.09618, allocations: 38.75 kB / 409.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.09623, allocations: 16.75 kB / 409.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.09646, allocations: 212.1 kB / 410.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-06/0.09647, allocations: 384 / 410.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.0965, allocations: 7.938 kB / 410.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.09671, allocations: 99.38 kB / 410.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.09673, allocations: 0 / 410.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.09675, allocations: 0 / 410.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.433e-06/0.09676, allocations: 0 / 410.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.0969, allocations: 59.84 kB / 410.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004042/0.09731, allocations: 329.6 kB / 410.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.09755, allocations: 97.22 kB / 410.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.837e-05/0.09766, allocations: 53.75 kB / 410.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.357e-06/0.09768, allocations: 4 kB / 410.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/0.09791, allocations: 138.8 kB / 410.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 2.555e-06/0.09792, allocations: 0 / 410.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004286/0.09836, allocations: 231.3 kB / 411.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.09842, allocations: 110.8 kB / 411.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.09857, allocations: 165 kB / 411.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.09859, allocations: 33.7 kB / 411.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.09865, allocations: 104 kB / 411.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.09869, allocations: 19.72 kB / 411.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/0.09874, allocations: 25.7 kB / 411.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.385e-05/0.09884, allocations: 326.8 kB / 411.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.504e-05/0.09893, allocations: 35.98 kB / 411.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.294e-05/0.09902, allocations: 49.69 kB / 411.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.0992, allocations: 153 kB / 412.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.09922, allocations: 0 / 412.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002809/0.09951, allocations: 183.2 kB / 412.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/0.09956, allocations: 45.62 kB / 412.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.09957, allocations: 0 / 412.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.09959, allocations: 4 kB / 412.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.007e-05/0.09966, allocations: 8 kB / 412.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.09967, allocations: 4.25 kB / 412.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.295e-05/0.09976, allocations: 27.77 kB / 412.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.09978, allocations: 4 kB / 412.4 MB, free: 9.68 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 (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.0001106/0.09989, allocations: 155.5 kB / 412.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.09993, allocations: 11.91 kB / 412.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.038e-05/0.09997, allocations: 8.719 kB / 412.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.09998, allocations: 7.984 kB / 412.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.09999, allocations: 0 / 412.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1, allocations: 3.938 kB / 412.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.1002, allocations: 205.6 kB / 412.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1002, allocations: 4 kB / 412.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-05/0.1002, allocations: 11.98 kB / 412.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1002, allocations: 7.875 kB / 412.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.1003, allocations: 8 kB / 412.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.1003, allocations: 4 kB / 412.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1003, allocations: 0 / 412.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000349/0.1006, allocations: 251.4 kB / 413 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.1007, allocations: 96.94 kB / 413.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.1007, allocations: 7.938 kB / 413.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.919e-05/0.1008, allocations: 11.98 kB / 413.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.074e-05/0.1009, allocations: 7.938 kB / 413.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.1009, allocations: 8 kB / 413.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.017e-05/0.101, allocations: 119.2 kB / 413.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.101, allocations: 0 / 413.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002968/0.1013, allocations: 67.98 kB / 413.3 MB, free: 8.59 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 (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.001249/0.1025, allocations: 1.075 MB / 414.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002998/0.1029, allocations: 195.3 kB / 414.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1029, allocations: 0 / 414.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.103, allocations: 143.6 kB / 414.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.1033, allocations: 22.03 kB / 414.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.1053, allocations: 1.875 MB / 416.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.1055, allocations: 0.7078 MB / 417.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.957e-05/0.1056, allocations: 12.42 kB / 417.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.996e-05/0.1056, allocations: 35.42 kB / 417.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1056, allocations: 0 / 417.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.1263, allocations: 4.228 MB / 421.6 MB, free: 260 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/7.676, allocations: 11.52 kB / 421.6 MB, free: 252 kB / 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 & 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)