Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternData_ExternData.Examples.MATTest.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.3-master/package.mo", uses=false) Using package ExternData with version 3.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-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.MATTest,fileNamePrefix="ExternData_ExternData_Examples_MATTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.MATTest,fileNamePrefix="ExternData_ExternData_Examples_MATTest",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.000885/0.000885, allocations: 98.83 kB / 15.05 MB, free: 1.105 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.0009612/0.0009613, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/package.mo): time 0.1483/0.1483, allocations: 2.955 MB / 293.9 MB, free: 3.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003721, allocations: 12.22 kB / 355.9 MB, free: 3.66 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.109, allocations: 51.35 MB / 407.2 MB, free: 264 kB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.001771/0.1108, allocations: 1.184 MB / 408.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1123, allocations: 1.179 MB / 409.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.449e-05/0.1123, allocations: 4 kB / 409.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.1125, allocations: 35.84 kB / 409.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.059e-05/0.1126, allocations: 19.92 kB / 409.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.1128, allocations: 51.88 kB / 409.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.291e-05/0.1129, allocations: 35.94 kB / 409.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.792e-05/0.1129, allocations: 8.266 kB / 409.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.335e-05/0.113, allocations: 19.92 kB / 409.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.1131, allocations: 23.8 kB / 409.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.1131, allocations: 4 kB / 409.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.1133, allocations: 87.91 kB / 409.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.62e-05/0.1133, allocations: 11.92 kB / 409.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.029e-05/0.1134, allocations: 33.7 kB / 409.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.1135, allocations: 91.8 kB / 410 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.1135, allocations: 0 / 410 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1135, allocations: 0 / 410 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.1135, allocations: 0 / 410 MB, free: 13.45 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000441/0.114, allocations: 403 kB / 410.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.114, allocations: 12.03 kB / 410.4 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.339e-05/0.1141, allocations: 34.56 kB / 410.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.071e-05/0.1141, allocations: 15.89 kB / 410.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.1143, allocations: 202.7 kB / 410.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.795e-06/0.1143, allocations: 0 / 410.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.1143, allocations: 7.984 kB / 410.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.1145, allocations: 61.67 kB / 410.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.1145, allocations: 0 / 410.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.1145, allocations: 0 / 410.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1145, allocations: 0 / 410.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.146e-05/0.1146, allocations: 35.97 kB / 410.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.1148, allocations: 185.6 kB / 410.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.963e-05/0.1148, allocations: 54.5 kB / 411 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.1149, allocations: 0 / 411 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000158/0.115, allocations: 101.1 kB / 411.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.115, allocations: 0 / 411.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003402/0.1154, allocations: 268.4 kB / 411.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/0.1154, allocations: 81.05 kB / 411.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.1156, allocations: 145.8 kB / 411.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.1156, allocations: 29.64 kB / 411.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.915e-05/0.1156, allocations: 92.12 kB / 411.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.1157, allocations: 23.86 kB / 411.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-06/0.1157, allocations: 0 / 411.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1158, allocations: 322.8 kB / 412 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.241e-05/0.1158, allocations: 27.98 kB / 412 MB, free: 11.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.425e-05/0.1159, allocations: 20 kB / 412.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.574e-05/0.1159, allocations: 65.62 kB / 412.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.116, allocations: 0 / 412.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001899/0.1161, allocations: 163.2 kB / 412.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.1162, allocations: 41.69 kB / 412.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/0.1162, allocations: 0 / 412.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.496e-06/0.1162, allocations: 0 / 412.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.448e-05/0.1163, allocations: 4 kB / 412.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.1163, allocations: 0 / 412.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.343e-05/0.1164, allocations: 11.94 kB / 412.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.1164, allocations: 0 / 412.3 MB, free: 10.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001143/0.1165, allocations: 155.5 kB / 412.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.1165, allocations: 19.84 kB / 412.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.036e-05/0.1165, allocations: 8.375 kB / 412.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1165, allocations: 4 kB / 412.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.1166, allocations: 0 / 412.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1166, allocations: 4 kB / 412.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.1167, allocations: 185.5 kB / 412.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1167, allocations: 4 kB / 412.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.97e-05/0.1167, allocations: 4.078 kB / 412.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.1167, allocations: 7.953 kB / 412.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.1168, allocations: 11.97 kB / 412.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1168, allocations: 96 / 412.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1168, allocations: 3.938 kB / 412.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.117, allocations: 202.7 kB / 412.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.461e-05/0.1171, allocations: 93 kB / 413 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.1171, allocations: 7.953 kB / 413 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.108e-05/0.1172, allocations: 4 kB / 413 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.229e-05/0.1172, allocations: 12 kB / 413.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.1172, allocations: 3.984 kB / 413.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.231e-05/0.1173, allocations: 107.3 kB / 413.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.1173, allocations: 0 / 413.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.1176, allocations: 47.92 kB / 413.2 MB, free: 9.836 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009963/0.1186, allocations: 0.911 MB / 414.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002017/0.1188, allocations: 155.4 kB / 414.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1188, allocations: 0 / 414.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.1189, allocations: 127.3 kB / 414.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.119, allocations: 11.95 kB / 414.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009089/0.12, allocations: 0.6574 MB / 415.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.1202, allocations: 0.6926 MB / 415.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.599e-05/0.1203, allocations: 12.17 kB / 415.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.404e-05/0.1203, allocations: 23.42 kB / 415.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1203, allocations: 3.938 kB / 415.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01361/0.1339, allocations: 2.52 MB / 418.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.1342, allocations: 190 kB / 418.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/1.903, allocations: 4.047 kB / 418.5 MB, free: 4.531 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.MATTest.pipe ; mkfifo ExternData_ExternData.Examples.MATTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.MATTest.pipe >> ../files/ExternData_ExternData.Examples.MATTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_MATTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_MATTest.fmu > ExternData_ExternData.Examples.MATTest.pipe 2>&1) Environment - environmentSimulation: