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.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.005287/0.005287, allocations: 97.8 kB / 15.73 MB, free: 5.996 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.001323/0.001323, allocations: 186.5 kB / 16.67 MB, free: 5.926 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.496/1.496, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.1494/0.1494, allocations: 2.936 MB / 293.5 MB, free: 3.262 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001936, allocations: 63.91 kB / 405.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3055, allocations: 50.34 MB / 456.1 MB, free: 27.96 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002731/0.3082, allocations: 1.707 MB / 457.8 MB, free: 26.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.3103, allocations: 1.621 MB / 459.4 MB, free: 25.65 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.278e-05/0.3104, allocations: 0 / 459.4 MB, free: 25.65 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0003696/0.3108, allocations: 42.38 kB / 459.5 MB, free: 25.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003578/0.3111, allocations: 123.5 kB / 459.6 MB, free: 25.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.3114, allocations: 78.7 kB / 459.7 MB, free: 25.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000142/0.3115, allocations: 101.4 kB / 459.8 MB, free: 25.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.256e-05/0.3116, allocations: 10.27 kB / 459.8 MB, free: 25.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.329e-05/0.3117, allocations: 42.17 kB / 459.8 MB, free: 25.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.3119, allocations: 35.53 kB / 459.9 MB, free: 25.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.3119, allocations: 6.25 kB / 459.9 MB, free: 25.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002858/0.3122, allocations: 212.1 kB / 460.1 MB, free: 25.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.362e-05/0.3123, allocations: 17.88 kB / 460.1 MB, free: 25.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.076e-05/0.3124, allocations: 44.05 kB / 460.1 MB, free: 25.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003413/0.3127, allocations: 232.9 kB / 460.4 MB, free: 25.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.709e-06/0.3127, allocations: 10.48 kB / 460.4 MB, free: 25.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3128, allocations: 3.938 kB / 460.4 MB, free: 25.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.3128, allocations: 0 / 460.4 MB, free: 25.24 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.0005489/0.3133, allocations: 479.2 kB / 460.8 MB, free: 24.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.3134, allocations: 13.89 kB / 460.8 MB, free: 24.78 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.736e-05/0.3134, allocations: 37.78 kB / 460.9 MB, free: 24.74 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.3134, allocations: 15.03 kB / 460.9 MB, free: 24.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.3137, allocations: 202.9 kB / 461.1 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.3137, allocations: 7.531 kB / 461.1 MB, free: 24.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.3137, allocations: 11.06 kB / 461.1 MB, free: 24.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.3139, allocations: 104.2 kB / 461.2 MB, free: 24.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.314, allocations: 0 / 461.2 MB, free: 24.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.314, allocations: 0 / 461.2 MB, free: 24.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.314, allocations: 6.969 kB / 461.2 MB, free: 24.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.3141, allocations: 53.11 kB / 461.3 MB, free: 24.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003217/0.3145, allocations: 319.4 kB / 461.6 MB, free: 24.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.3147, allocations: 96.72 kB / 461.7 MB, free: 24.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.02e-05/0.3148, allocations: 55.66 kB / 461.7 MB, free: 24.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.298e-05/0.3148, allocations: 7.031 kB / 461.7 MB, free: 24.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.315, allocations: 138.2 kB / 461.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.315, allocations: 0 / 461.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004563/0.3155, allocations: 227.4 kB / 462.1 MB, free: 23.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.3155, allocations: 113.2 kB / 462.2 MB, free: 23.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.3157, allocations: 163.5 kB / 462.4 MB, free: 23.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.3157, allocations: 28.98 kB / 462.4 MB, free: 23.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.811e-05/0.3157, allocations: 94.7 kB / 462.5 MB, free: 23.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/0.3158, allocations: 34.23 kB / 462.5 MB, free: 23.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.152e-05/0.3158, allocations: 23.34 kB / 462.5 MB, free: 23.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.797e-05/0.3159, allocations: 325.5 kB / 462.9 MB, free: 23.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.104e-05/0.316, allocations: 44.38 kB / 462.9 MB, free: 23.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.595e-05/0.3161, allocations: 56.83 kB / 463 MB, free: 23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.3162, allocations: 153.2 kB / 463.1 MB, free: 22.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3162, allocations: 0 / 463.1 MB, free: 22.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002796/0.3165, allocations: 188.5 kB / 463.3 MB, free: 22.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.3166, allocations: 39.36 kB / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3166, allocations: 3.156 kB / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.3166, allocations: 0 / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.177e-05/0.3167, allocations: 20.69 kB / 463.4 MB, free: 22.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.3167, allocations: 0 / 463.4 MB, free: 22.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.357e-05/0.3168, allocations: 10.19 kB / 463.4 MB, free: 22.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.3168, allocations: 3.031 kB / 463.4 MB, free: 22.74 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 9.877e-05/0.3169, allocations: 167.3 kB / 463.5 MB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.3169, allocations: 9.984 kB / 463.5 MB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.017e-05/0.317, allocations: 11.75 kB / 463.6 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.317, allocations: 0 / 463.6 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.317, allocations: 7.031 kB / 463.6 MB, free: 22.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.317, allocations: 3.938 kB / 463.6 MB, free: 22.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.3171, allocations: 210.5 kB / 463.8 MB, free: 22.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3171, allocations: 0 / 463.8 MB, free: 22.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.84e-05/0.3172, allocations: 11.98 kB / 463.8 MB, free: 22.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3172, allocations: 3.938 kB / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.3172, allocations: 7.281 kB / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3172, allocations: 0 / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3172, allocations: 2.969 kB / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002957/0.3175, allocations: 249.8 kB / 464 MB, free: 22.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.202e-05/0.3176, allocations: 95.22 kB / 464.1 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.3176, allocations: 3 kB / 464.1 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.145e-05/0.3177, allocations: 9.969 kB / 464.1 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.3177, allocations: 7.125 kB / 464.2 MB, free: 22.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.3178, allocations: 14.7 kB / 464.2 MB, free: 22.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.158e-05/0.3178, allocations: 123.5 kB / 464.3 MB, free: 21.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3178, allocations: 4 kB / 464.3 MB, free: 21.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.3181, allocations: 71.36 kB / 464.4 MB, free: 21.96 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.001391/0.3195, allocations: 1.068 MB / 465.4 MB, free: 21.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002762/0.3198, allocations: 190.2 kB / 465.6 MB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3198, allocations: 4 kB / 465.6 MB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.32, allocations: 139.5 kB / 465.8 MB, free: 20.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.3202, allocations: 19.84 kB / 465.8 MB, free: 20.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001786/0.322, allocations: 1.881 MB / 467.7 MB, free: 19.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.3222, allocations: 0.7011 MB / 468.4 MB, free: 18.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.968e-05/0.3222, allocations: 20.39 kB / 468.4 MB, free: 18.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.341e-05/0.3223, allocations: 36.05 kB / 468.4 MB, free: 18.79 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3223, allocations: 0 / 468.4 MB, free: 18.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02752/0.3498, allocations: 4.311 MB / 472.7 MB, free: 17.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.115/8.465, allocations: 0 / 472.7 MB, free: 17.98 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)