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.001246/0.001246, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001288/0.001288, allocations: 192.5 kB / 16.25 MB, free: 6.637 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.324/1.324, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1242/0.1242, allocations: 2.931 MB / 293 MB, free: 3.145 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 71.89 kB / 354.3 MB, free: 4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07671/0.07799, allocations: 50.34 MB / 404.6 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002909/0.08094, allocations: 1.759 MB / 406.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.08301, allocations: 1.604 MB / 408 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.797e-05/0.0831, allocations: 0 / 408 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002588/0.08338, allocations: 35.86 kB / 408 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003317/0.08372, allocations: 107.6 kB / 408.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002195/0.08395, allocations: 67.88 kB / 408.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000132/0.0841, allocations: 99.75 kB / 408.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.99e-05/0.08418, allocations: 16.2 kB / 408.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.92e-05/0.08426, allocations: 39.8 kB / 408.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.08441, allocations: 39.83 kB / 408.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.08444, allocations: 8 kB / 408.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002663/0.08471, allocations: 195.7 kB / 408.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.295e-05/0.08477, allocations: 23.92 kB / 408.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.748e-05/0.08483, allocations: 51.72 kB / 408.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003182/0.08516, allocations: 231.5 kB / 408.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.08517, allocations: 0 / 408.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08517, allocations: 0 / 408.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.08518, allocations: 0 / 408.9 MB, free: 13.33 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.0005909/0.08578, allocations: 472.8 kB / 409.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.08582, allocations: 11.89 kB / 409.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.461e-05/0.08587, allocations: 46.67 kB / 409.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.288e-05/0.08592, allocations: 12.75 kB / 409.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.08612, allocations: 208.2 kB / 409.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.08614, allocations: 4.375 kB / 409.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.08616, allocations: 3.938 kB / 409.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.08636, allocations: 95.38 kB / 409.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.08638, allocations: 0 / 409.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.08639, allocations: 0 / 409.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.0864, allocations: 7.938 kB / 409.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.08654, allocations: 51.95 kB / 409.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003727/0.08692, allocations: 321.6 kB / 410.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.08716, allocations: 101.2 kB / 410.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.672e-05/0.08726, allocations: 61.75 kB / 410.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.08728, allocations: 0 / 410.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002323/0.08752, allocations: 138.7 kB / 410.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.08753, allocations: 0 / 410.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004394/0.08797, allocations: 231.3 kB / 410.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.08803, allocations: 106.8 kB / 410.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.08818, allocations: 155.9 kB / 410.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.08821, allocations: 37.64 kB / 410.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.663e-05/0.08826, allocations: 104 kB / 411 MB, free: 10.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.08829, allocations: 19.72 kB / 411 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.273e-05/0.08835, allocations: 25.7 kB / 411 MB, free: 10.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.08846, allocations: 326.8 kB / 411.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.162e-05/0.08855, allocations: 35.98 kB / 411.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.364e-05/0.08864, allocations: 53.69 kB / 411.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.08883, allocations: 153.2 kB / 411.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.08884, allocations: 0 / 411.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002891/0.08914, allocations: 191.2 kB / 411.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.08918, allocations: 37.69 kB / 411.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.0892, allocations: 4 kB / 411.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.08921, allocations: 4 kB / 411.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.946e-05/0.08928, allocations: 11.98 kB / 411.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.08929, allocations: 0 / 411.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.399e-05/0.08938, allocations: 23.72 kB / 411.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.0894, allocations: 4 kB / 411.9 MB, free: 10.01 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.0001164/0.08952, allocations: 155.5 kB / 412 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.08956, allocations: 11.91 kB / 412 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.747e-05/0.08959, allocations: 16.7 kB / 412.1 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.0896, allocations: 4 kB / 412.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.08961, allocations: 3.938 kB / 412.1 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.08962, allocations: 3.938 kB / 412.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.08978, allocations: 209.6 kB / 412.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.08979, allocations: 0 / 412.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.059e-05/0.08984, allocations: 11.98 kB / 412.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.08985, allocations: 0 / 412.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.08987, allocations: 7.938 kB / 412.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.08988, allocations: 0 / 412.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.08989, allocations: 0 / 412.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003539/0.09024, allocations: 251.4 kB / 412.5 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.0903, allocations: 96.94 kB / 412.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.09034, allocations: 11.98 kB / 412.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.493e-05/0.09041, allocations: 11.88 kB / 412.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.507e-05/0.09045, allocations: 7.938 kB / 412.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.09048, allocations: 7.984 kB / 412.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.789e-05/0.09058, allocations: 125.7 kB / 412.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09059, allocations: 0 / 412.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002935/0.09089, allocations: 79.98 kB / 412.9 MB, free: 8.902 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.001245/0.09214, allocations: 1.057 MB / 413.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002943/0.09245, allocations: 195.3 kB / 414.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.09246, allocations: 0 / 414.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.09262, allocations: 139.3 kB / 414.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.09284, allocations: 19.31 kB / 414.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.09487, allocations: 1.89 MB / 416.2 MB, free: 5.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.09511, allocations: 0.7039 MB / 416.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.509e-05/0.09518, allocations: 24.41 kB / 416.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.734e-05/0.09525, allocations: 35.42 kB / 416.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.09526, allocations: 0 / 416.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1348/0.2301, allocations: 4.116 MB / 421 MB, free: 0.707 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/0.2304, allocations: 240.5 kB / 421.3 MB, free: 460 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.227/2.457, allocations: 0 / 421.3 MB, free: 460 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 & /home/hudson/saved_omc/OMSimulator/install/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)