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.001188/0.001188, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001186/0.001187, allocations: 193.9 kB / 16.14 MB, free: 6.711 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.184/1.184, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1103/0.1103, allocations: 2.93 MB / 292.9 MB, free: 3.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 63.91 kB / 354.1 MB, free: 4.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08503, allocations: 50.34 MB / 404.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003252/0.08833, allocations: 1.743 MB / 406.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002436/0.09079, allocations: 1.623 MB / 407.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.973e-05/0.09091, allocations: 0 / 407.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003284/0.09125, allocations: 43.84 kB / 407.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003593/0.09164, allocations: 91.66 kB / 407.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.0919, allocations: 63.88 kB / 408 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001324/0.09204, allocations: 83.77 kB / 408.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.879e-05/0.09214, allocations: 20.19 kB / 408.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.796e-05/0.09223, allocations: 39.73 kB / 408.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.09242, allocations: 35.83 kB / 408.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.09245, allocations: 4 kB / 408.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003166/0.09277, allocations: 199.7 kB / 408.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.356e-05/0.09284, allocations: 23.91 kB / 408.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.54e-05/0.09291, allocations: 39.73 kB / 408.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004542/0.09338, allocations: 231.5 kB / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.09339, allocations: 0 / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.0934, allocations: 0 / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.09341, allocations: 0 / 408.7 MB, free: 14.16 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.0008127/0.09423, allocations: 484.7 kB / 409.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.09428, allocations: 12.03 kB / 409.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.046e-05/0.09433, allocations: 34.69 kB / 409.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.09439, allocations: 8.844 kB / 409.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.09464, allocations: 212.1 kB / 409.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.09467, allocations: 8.375 kB / 409.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.09469, allocations: 7.938 kB / 409.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.09491, allocations: 95.38 kB / 409.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.09493, allocations: 0 / 409.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.09495, allocations: 3.938 kB / 409.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.09496, allocations: 4 kB / 409.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001401/0.09511, allocations: 51.97 kB / 409.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004648/0.09558, allocations: 313.7 kB / 409.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.09585, allocations: 101.2 kB / 410 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.09598, allocations: 61.75 kB / 410 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.096, allocations: 0 / 410 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.09628, allocations: 150.7 kB / 410.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.834e-06/0.09629, allocations: 0 / 410.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004799/0.09678, allocations: 231.2 kB / 410.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.09685, allocations: 106.8 kB / 410.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.09701, allocations: 160.4 kB / 410.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.09703, allocations: 25.7 kB / 410.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.983e-05/0.09709, allocations: 104.1 kB / 410.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.097e-05/0.09712, allocations: 19.62 kB / 410.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-05/0.09718, allocations: 29.7 kB / 410.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.0973, allocations: 326.8 kB / 411.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.981e-05/0.09739, allocations: 35.98 kB / 411.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.374e-05/0.09748, allocations: 53.69 kB / 411.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.09767, allocations: 153 kB / 411.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.09768, allocations: 0 / 411.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002935/0.09798, allocations: 191.1 kB / 411.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.09803, allocations: 37.69 kB / 411.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.09804, allocations: 0 / 411.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.09807, allocations: 4 kB / 411.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.97e-05/0.09813, allocations: 8.328 kB / 411.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.09814, allocations: 3.984 kB / 411.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.615e-05/0.09823, allocations: 19.88 kB / 411.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.09824, allocations: 4 kB / 411.7 MB, free: 10.84 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.0001186/0.09837, allocations: 155.5 kB / 411.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.759e-05/0.09841, allocations: 23.8 kB / 411.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.09845, allocations: 16.7 kB / 411.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.09846, allocations: 3.938 kB / 411.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.09847, allocations: 7.938 kB / 411.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.09848, allocations: 7.938 kB / 411.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.09864, allocations: 197.6 kB / 412.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.09865, allocations: 0 / 412.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.076e-05/0.0987, allocations: 11.98 kB / 412.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.09871, allocations: 0 / 412.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.09873, allocations: 4 kB / 412.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.09874, allocations: 0 / 412.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.09874, allocations: 0 / 412.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003648/0.09911, allocations: 251.6 kB / 412.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.103e-05/0.09918, allocations: 100.9 kB / 412.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.09921, allocations: 7.938 kB / 412.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.749e-05/0.09928, allocations: 7.984 kB / 412.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.09933, allocations: 11.94 kB / 412.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.09935, allocations: 4 kB / 412.5 MB, free: 9.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.09946, allocations: 127.2 kB / 412.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.09947, allocations: 0 / 412.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000302/0.09978, allocations: 91.77 kB / 412.7 MB, free: 9.719 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.001207/0.101, allocations: 1.052 MB / 413.7 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002788/0.1013, allocations: 191.3 kB / 413.9 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1013, allocations: 0 / 413.9 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.1014, allocations: 139.3 kB / 414 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.1017, allocations: 15.94 kB / 414.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.1036, allocations: 1.89 MB / 415.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.1038, allocations: 0.7004 MB / 416.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.465e-05/0.1038, allocations: 24.41 kB / 416.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.072e-05/0.1039, allocations: 31.42 kB / 416.7 MB, free: 5.602 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1039, allocations: 192 / 416.7 MB, free: 5.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03019/0.1341, allocations: 4.038 MB / 420.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002221/0.1343, allocations: 243.5 kB / 421 MB, free: 1.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/1.851, allocations: 0 / 421 MB, free: 1.387 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)