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.005363/0.005363, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001405/0.001405, allocations: 199.4 kB / 16.68 MB, free: 5.969 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.2177/0.2177, allocations: 2.929 MB / 293.5 MB, free: 3.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 55.91 kB / 405.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3336, allocations: 50.34 MB / 456.1 MB, free: 27.92 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002628/0.3363, allocations: 1.707 MB / 457.8 MB, free: 26.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.3385, allocations: 1.625 MB / 459.4 MB, free: 25.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.456e-05/0.3386, allocations: 0 / 459.4 MB, free: 25.6 MB / 366.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.0003473/0.339, allocations: 35.11 kB / 459.5 MB, free: 25.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003358/0.3393, allocations: 129.5 kB / 459.6 MB, free: 25.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.3395, allocations: 82.97 kB / 459.7 MB, free: 25.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.3397, allocations: 89.8 kB / 459.8 MB, free: 25.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.897e-05/0.3398, allocations: 18.36 kB / 459.8 MB, free: 25.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.027e-05/0.3399, allocations: 38.95 kB / 459.8 MB, free: 25.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.34, allocations: 38.62 kB / 459.9 MB, free: 25.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.3401, allocations: 5.906 kB / 459.9 MB, free: 25.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002546/0.3403, allocations: 208.7 kB / 460.1 MB, free: 25.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.717e-05/0.3404, allocations: 21.75 kB / 460.1 MB, free: 25.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.785e-05/0.3405, allocations: 44.53 kB / 460.1 MB, free: 25.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003055/0.3408, allocations: 233.6 kB / 460.4 MB, free: 25.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3408, allocations: 0 / 460.4 MB, free: 25.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3408, allocations: 4 kB / 460.4 MB, free: 25.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.3408, allocations: 0 / 460.4 MB, free: 25.2 MB / 366.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.0005233/0.3413, allocations: 482.6 kB / 460.8 MB, free: 24.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.3414, allocations: 13.67 kB / 460.8 MB, free: 24.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.098e-05/0.3414, allocations: 41.66 kB / 460.9 MB, free: 24.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.861e-05/0.3415, allocations: 14.97 kB / 460.9 MB, free: 24.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.3417, allocations: 210.2 kB / 461.1 MB, free: 24.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.3417, allocations: 4.375 kB / 461.1 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.3418, allocations: 14.11 kB / 461.1 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.342, allocations: 92.89 kB / 461.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/0.342, allocations: 3.938 kB / 461.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.342, allocations: 3.156 kB / 461.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.342, allocations: 0 / 461.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.3421, allocations: 53.28 kB / 461.3 MB, free: 24.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003642/0.3425, allocations: 324.4 kB / 461.6 MB, free: 24.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.3427, allocations: 94.44 kB / 461.7 MB, free: 24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.413e-05/0.3428, allocations: 58.02 kB / 461.7 MB, free: 23.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.417e-06/0.3429, allocations: 7.125 kB / 461.7 MB, free: 23.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001902/0.3431, allocations: 143.7 kB / 461.9 MB, free: 23.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.203e-06/0.3431, allocations: 0 / 461.9 MB, free: 23.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004376/0.3435, allocations: 232.7 kB / 462.1 MB, free: 23.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.3436, allocations: 109.8 kB / 462.2 MB, free: 23.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.3437, allocations: 162.6 kB / 462.4 MB, free: 23.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.3437, allocations: 28.77 kB / 462.4 MB, free: 23.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.056e-05/0.3438, allocations: 94.69 kB / 462.5 MB, free: 23.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.3438, allocations: 30.28 kB / 462.5 MB, free: 23.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-05/0.3439, allocations: 23.03 kB / 462.6 MB, free: 23.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.103e-05/0.3439, allocations: 325.4 kB / 462.9 MB, free: 23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.161e-05/0.344, allocations: 41.08 kB / 462.9 MB, free: 22.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.851e-05/0.3441, allocations: 53.64 kB / 463 MB, free: 22.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.3443, allocations: 152.6 kB / 463.1 MB, free: 22.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3443, allocations: 0 / 463.1 MB, free: 22.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002598/0.3445, allocations: 189.5 kB / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.3446, allocations: 39.33 kB / 463.3 MB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3446, allocations: 0 / 463.3 MB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3446, allocations: 3 kB / 463.3 MB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.332e-05/0.3447, allocations: 12.81 kB / 463.3 MB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3447, allocations: 4 kB / 463.4 MB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.048e-05/0.3448, allocations: 14.44 kB / 463.4 MB, free: 22.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.3448, allocations: 6.281 kB / 463.4 MB, free: 22.7 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.000123/0.3449, allocations: 157 kB / 463.5 MB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.345, allocations: 10.33 kB / 463.5 MB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.144e-05/0.345, allocations: 15.88 kB / 463.6 MB, free: 22.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.345, allocations: 6.766 kB / 463.6 MB, free: 22.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.345, allocations: 0 / 463.6 MB, free: 22.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3451, allocations: 7.938 kB / 463.6 MB, free: 22.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.3452, allocations: 211.7 kB / 463.8 MB, free: 22.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3452, allocations: 0 / 463.8 MB, free: 22.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.164e-05/0.3453, allocations: 20.8 kB / 463.8 MB, free: 22.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.3453, allocations: 0 / 463.8 MB, free: 22.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.3453, allocations: 7.219 kB / 463.8 MB, free: 22.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3453, allocations: 0 / 463.8 MB, free: 22.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3453, allocations: 0 / 463.8 MB, free: 22.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.3456, allocations: 248.1 kB / 464 MB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.3457, allocations: 91.53 kB / 464.1 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.3457, allocations: 7.188 kB / 464.1 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.717e-05/0.3458, allocations: 13.45 kB / 464.2 MB, free: 22.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.3459, allocations: 10.44 kB / 464.2 MB, free: 22.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.3459, allocations: 7.219 kB / 464.2 MB, free: 22.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.358e-05/0.346, allocations: 125.9 kB / 464.3 MB, free: 21.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.346, allocations: 0 / 464.3 MB, free: 21.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.3463, allocations: 80.44 kB / 464.4 MB, free: 21.91 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.001156/0.3475, allocations: 1.068 MB / 465.4 MB, free: 21.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002802/0.3477, allocations: 191.2 kB / 465.6 MB, free: 21.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3478, allocations: 8 kB / 465.6 MB, free: 21.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.3479, allocations: 136.4 kB / 465.8 MB, free: 20.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.3481, allocations: 20.91 kB / 465.8 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.3499, allocations: 1.872 MB / 467.7 MB, free: 19.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.3501, allocations: 0.7123 MB / 468.4 MB, free: 18.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.532e-05/0.3501, allocations: 17.83 kB / 468.4 MB, free: 18.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.211e-05/0.3502, allocations: 32.19 kB / 468.4 MB, free: 18.76 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3502, allocations: 0 / 468.4 MB, free: 18.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.3739, allocations: 4.306 MB / 472.7 MB, free: 17.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.809/8.183, allocations: 14.33 kB / 472.7 MB, free: 17.95 MB / 366.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)