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.0008134/0.0008133, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0008941/0.0008942, allocations: 168.7 kB / 15.95 MB, free: 204 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.415/1.415, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/package.mo): time 0.1649/0.1649, allocations: 2.955 MB / 294 MB, free: 3.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003399, allocations: 8 kB / 356 MB, free: 3.629 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1272, allocations: 51.36 MB / 407.3 MB, free: 228 kB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002211/0.1294, allocations: 1.188 MB / 408.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.1315, allocations: 1.179 MB / 409.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.552e-05/0.1316, allocations: 0 / 409.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002863/0.1319, allocations: 31.86 kB / 409.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.839e-05/0.132, allocations: 23.91 kB / 409.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.1323, allocations: 63.81 kB / 409.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.1324, allocations: 43.84 kB / 409.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.889e-05/0.1325, allocations: 8.281 kB / 409.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.206e-05/0.1325, allocations: 23.92 kB / 409.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001805/0.1327, allocations: 15.92 kB / 409.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.1327, allocations: 7.938 kB / 409.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.1329, allocations: 87.91 kB / 410 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.26e-05/0.133, allocations: 15.92 kB / 410 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.134e-05/0.133, allocations: 33.7 kB / 410 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001775/0.1332, allocations: 91.8 kB / 410.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1332, allocations: 0 / 410.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1332, allocations: 0 / 410.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1333, allocations: 0 / 410.1 MB, free: 13.39 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.0005307/0.1338, allocations: 404.9 kB / 410.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1338, allocations: 12.03 kB / 410.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.854e-05/0.1339, allocations: 38.48 kB / 410.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.718e-05/0.1339, allocations: 7.906 kB / 410.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.1342, allocations: 210.6 kB / 410.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1342, allocations: 4 kB / 410.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.1342, allocations: 4 kB / 410.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/0.1344, allocations: 61.61 kB / 410.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.1344, allocations: 0 / 410.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.1344, allocations: 11.98 kB / 410.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1344, allocations: 0 / 410.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.911e-05/0.1345, allocations: 27.92 kB / 410.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002202/0.1347, allocations: 181.6 kB / 411.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.346e-05/0.1348, allocations: 50.52 kB / 411.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.227e-05/0.1349, allocations: 40.89 kB / 411.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.1349, allocations: 0 / 411.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.1351, allocations: 109.1 kB / 411.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.1351, allocations: 0 / 411.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003473/0.1355, allocations: 187.2 kB / 411.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.1355, allocations: 89.09 kB / 411.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.1357, allocations: 137.8 kB / 411.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.1357, allocations: 25.7 kB / 411.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.27e-05/0.1358, allocations: 88.14 kB / 411.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.1358, allocations: 31.84 kB / 411.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-06/0.1358, allocations: 0 / 411.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1359, allocations: 314.8 kB / 412.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.998e-05/0.136, allocations: 27.98 kB / 412.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.07e-05/0.136, allocations: 27.98 kB / 412.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.454e-05/0.1361, allocations: 61.62 kB / 412.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1361, allocations: 0 / 412.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000209/0.1363, allocations: 159.2 kB / 412.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.1364, allocations: 37.7 kB / 412.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.1364, allocations: 0 / 412.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1364, allocations: 7.984 kB / 412.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.426e-05/0.1365, allocations: 7.938 kB / 412.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.1365, allocations: 96 / 412.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.959e-05/0.1366, allocations: 11.88 kB / 412.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.1366, allocations: 4 kB / 412.4 MB, free: 10.79 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.0001222/0.1367, allocations: 157.7 kB / 412.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.241e-05/0.1368, allocations: 11.86 kB / 412.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.362e-05/0.1368, allocations: 12.38 kB / 412.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1368, allocations: 7.984 kB / 412.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1368, allocations: 0 / 412.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1368, allocations: 0 / 412.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/0.137, allocations: 189.5 kB / 412.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.137, allocations: 0 / 412.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.312e-05/0.137, allocations: 4 kB / 412.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.137, allocations: 3.953 kB / 412.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.137, allocations: 4 kB / 412.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.137, allocations: 0 / 412.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.137, allocations: 0 / 412.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002682/0.1373, allocations: 214.7 kB / 413 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.1374, allocations: 85.02 kB / 413.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.1374, allocations: 19.88 kB / 413.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.377e-05/0.1375, allocations: 4 kB / 413.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.412e-05/0.1375, allocations: 0 / 413.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1375, allocations: 8 kB / 413.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.853e-05/0.1376, allocations: 111.2 kB / 413.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1377, allocations: 0 / 413.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002599/0.1379, allocations: 44 kB / 413.3 MB, free: 9.828 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.001176/0.1391, allocations: 0.9081 MB / 414.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002289/0.1393, allocations: 159.3 kB / 414.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1394, allocations: 0 / 414.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.1395, allocations: 127.4 kB / 414.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.1397, allocations: 19.95 kB / 414.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.1408, allocations: 0.6582 MB / 415.2 MB, free: 7.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.1411, allocations: 0.6965 MB / 415.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.245e-05/0.1411, allocations: 4.375 kB / 415.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.236e-05/0.1412, allocations: 27.42 kB / 415.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1412, allocations: 0 / 415.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01676/0.158, allocations: 2.523 MB / 418.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.1582, allocations: 198.9 kB / 418.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/2.084, allocations: 0 / 418.6 MB, free: 4.516 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: