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.0008749/0.000875, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004992/0.004993, allocations: 171.4 kB / 16.27 MB, free: 6.32 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.229/1.229, allocations: 223.3 MB / 240.3 MB, free: 5.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.1068/0.1068, allocations: 2.943 MB / 294.4 MB, free: 3.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.000269, allocations: 8.219 kB / 356.6 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07365/0.07393, allocations: 51.35 MB / 407.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.001636/0.0756, allocations: 1.416 MB / 409.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.07748, allocations: 1.6 MB / 410.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/0.07754, allocations: 0 / 410.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.07776, allocations: 39.84 kB / 411 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002443/0.07802, allocations: 103.3 kB / 411.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001838/0.07821, allocations: 67.81 kB / 411.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.208e-05/0.07831, allocations: 67.84 kB / 411.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.973e-05/0.07839, allocations: 20.2 kB / 411.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.708e-05/0.07846, allocations: 39.78 kB / 411.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.07861, allocations: 31.84 kB / 411.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.07863, allocations: 4 kB / 411.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.07889, allocations: 191.8 kB / 411.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.732e-05/0.07894, allocations: 19.86 kB / 411.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.247e-05/0.07901, allocations: 69.42 kB / 411.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.0793, allocations: 231.5 kB / 411.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.07931, allocations: 0 / 411.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.07932, allocations: 0 / 411.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.07933, allocations: 4 kB / 411.8 MB, free: 11.95 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.0004866/0.07982, allocations: 464.8 kB / 412.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.07986, allocations: 8.031 kB / 412.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.241e-05/0.07989, allocations: 38.75 kB / 412.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.147e-05/0.07993, allocations: 8.844 kB / 412.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.08012, allocations: 210.5 kB / 412.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-06/0.08013, allocations: 384 / 412.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.08016, allocations: 7.938 kB / 412.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.08035, allocations: 107.3 kB / 412.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.08037, allocations: 0 / 412.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.08039, allocations: 4 kB / 412.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.08039, allocations: 0 / 412.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.08053, allocations: 63.84 kB / 412.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003374/0.08088, allocations: 317.6 kB / 413 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.0811, allocations: 101.3 kB / 413.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.08122, allocations: 65.69 kB / 413.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.08124, allocations: 0 / 413.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.08145, allocations: 138.7 kB / 413.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.08146, allocations: 0 / 413.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004185/0.08189, allocations: 239.2 kB / 413.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.08195, allocations: 102.8 kB / 413.7 MB, free: 9.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.08208, allocations: 157.7 kB / 413.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.08211, allocations: 37.64 kB / 413.8 MB, free: 9.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.16e-05/0.08216, allocations: 100.2 kB / 413.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.08219, allocations: 27.61 kB / 414 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/0.08222, allocations: 13.72 kB / 414 MB, free: 9.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.163e-05/0.08232, allocations: 330.8 kB / 414.3 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.171e-05/0.08241, allocations: 39.97 kB / 414.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.148e-05/0.0825, allocations: 53.7 kB / 414.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.08269, allocations: 153.3 kB / 414.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.0827, allocations: 0 / 414.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002788/0.08298, allocations: 195.2 kB / 414.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.08303, allocations: 43.41 kB / 414.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.08304, allocations: 0 / 414.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.504e-06/0.08305, allocations: 0 / 414.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.959e-05/0.08311, allocations: 12 kB / 414.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.08312, allocations: 3.938 kB / 414.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.928e-05/0.08321, allocations: 27.77 kB / 414.8 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.08323, allocations: 4 kB / 414.8 MB, free: 8.613 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.0001036/0.08333, allocations: 155.5 kB / 415 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/0.08337, allocations: 11.91 kB / 415 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.656e-05/0.0834, allocations: 12.72 kB / 415 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.0834, allocations: 0 / 415 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.08341, allocations: 0 / 415 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.08342, allocations: 11.92 kB / 415 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001442/0.08357, allocations: 201.5 kB / 415.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.08358, allocations: 11.94 kB / 415.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.255e-05/0.08364, allocations: 11.98 kB / 415.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.08365, allocations: 4 kB / 415.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.08367, allocations: 7.938 kB / 415.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.08368, allocations: 4 kB / 415.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.08368, allocations: 0 / 415.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.08402, allocations: 251.5 kB / 415.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.08408, allocations: 96.94 kB / 415.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.08412, allocations: 7.938 kB / 415.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.231e-05/0.08419, allocations: 11.98 kB / 415.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.253e-05/0.08423, allocations: 11.88 kB / 415.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/0.08426, allocations: 8 kB / 415.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.953e-05/0.08435, allocations: 125.5 kB / 415.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.08436, allocations: 4 kB / 415.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.08464, allocations: 71.98 kB / 415.8 MB, free: 7.504 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.001165/0.08581, allocations: 1.061 MB / 416.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000279/0.08611, allocations: 199.3 kB / 417.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.08612, allocations: 0 / 417.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.08627, allocations: 143.3 kB / 417.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.08649, allocations: 15.94 kB / 417.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.08837, allocations: 1.908 MB / 419.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.08859, allocations: 0.7047 MB / 419.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.82e-05/0.08864, allocations: 16.41 kB / 419.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.021e-05/0.08871, allocations: 35.41 kB / 419.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.08872, allocations: 0 / 419.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1306/0.2193, allocations: 3.837 MB / 423.7 MB, free: 46.59 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001213/0.2194, allocations: 242.3 kB / 424 MB, free: 46.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.643/1.863, allocations: 3.906 kB / 424 MB, free: 46.34 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/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)