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.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.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.001463/0.001463, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001691/0.001691, allocations: 189 kB / 16.25 MB, free: 6.152 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.372/1.372, allocations: 222.9 MB / 239.9 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1407/0.1407, allocations: 2.931 MB / 293 MB, free: 3.176 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 60.11 kB / 354.3 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09568/0.09711, allocations: 50.35 MB / 404.6 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002703/0.09984, allocations: 1.543 MB / 406.2 MB, free: 32 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.1015, allocations: 1.241 MB / 407.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.01e-05/0.1016, allocations: 4 kB / 407.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.1018, allocations: 27.86 kB / 407.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.975e-05/0.102, allocations: 27.91 kB / 407.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002694/0.1023, allocations: 71.86 kB / 407.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.1024, allocations: 67.78 kB / 407.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.52e-05/0.1024, allocations: 288 / 407.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.612e-05/0.1025, allocations: 23.92 kB / 407.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.1026, allocations: 23.91 kB / 407.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.1027, allocations: 4 kB / 407.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001599/0.1028, allocations: 99.86 kB / 407.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.147e-05/0.1029, allocations: 19.92 kB / 407.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.691e-05/0.1029, allocations: 27.86 kB / 407.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002033/0.1031, allocations: 135.6 kB / 407.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.1032, allocations: 4 kB / 407.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1032, allocations: 0 / 407.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1032, allocations: 0 / 407.9 MB, free: 14.25 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.0004941/0.1037, allocations: 420.9 kB / 408.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.1037, allocations: 11.89 kB / 408.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.1038, allocations: 34.73 kB / 408.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.1038, allocations: 12.78 kB / 408.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.104, allocations: 200.1 kB / 408.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.104, allocations: 384 / 408.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.104, allocations: 4.375 kB / 408.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.1042, allocations: 69.8 kB / 408.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1042, allocations: 4 kB / 408.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-06/0.1042, allocations: 0 / 408.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1042, allocations: 0 / 408.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.36e-05/0.1043, allocations: 35.92 kB / 408.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001648/0.1044, allocations: 173.6 kB / 408.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.418e-05/0.1045, allocations: 50.56 kB / 408.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.747e-05/0.1046, allocations: 44.89 kB / 409 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.1046, allocations: 0 / 409 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001827/0.1048, allocations: 113 kB / 409.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.1048, allocations: 0 / 409.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003247/0.1051, allocations: 191.4 kB / 409.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.1052, allocations: 85.11 kB / 409.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.1053, allocations: 144.2 kB / 409.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.1053, allocations: 25.7 kB / 409.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.1054, allocations: 96.14 kB / 409.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.1054, allocations: 15.8 kB / 409.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.1055, allocations: 17.72 kB / 409.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.1056, allocations: 322.8 kB / 410 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.84e-05/0.1056, allocations: 27.98 kB / 410 MB, free: 11.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.809e-05/0.1057, allocations: 27.94 kB / 410 MB, free: 11.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.1058, allocations: 120.2 kB / 410.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1058, allocations: 0 / 410.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001986/0.106, allocations: 171.3 kB / 410.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.298e-05/0.106, allocations: 39.88 kB / 410.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.106, allocations: 3.984 kB / 410.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.1061, allocations: 4 kB / 410.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.71e-05/0.1061, allocations: 7.938 kB / 410.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1061, allocations: 0 / 410.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.553e-05/0.1062, allocations: 15.84 kB / 410.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.1062, allocations: 0 / 410.4 MB, free: 11.54 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 (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 (4): * Single equations (assignments): 3 * 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.000106/0.1063, allocations: 155.5 kB / 410.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.1064, allocations: 15.84 kB / 410.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.1064, allocations: 12.36 kB / 410.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1064, allocations: 4 kB / 410.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1064, allocations: 0 / 410.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1064, allocations: 0 / 410.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.1066, allocations: 181.6 kB / 410.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1066, allocations: 3.938 kB / 410.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.045e-05/0.1066, allocations: 0 / 410.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.1066, allocations: 0 / 410.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.1066, allocations: 8 kB / 410.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1066, allocations: 7.984 kB / 410.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1066, allocations: 0 / 410.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002608/0.1069, allocations: 214.6 kB / 411 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.413e-05/0.1069, allocations: 92.95 kB / 411 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.107, allocations: 3.984 kB / 411.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.645e-05/0.107, allocations: 8 kB / 411.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.76e-05/0.1071, allocations: 4 kB / 411.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.1071, allocations: 4 kB / 411.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.419e-05/0.1072, allocations: 115.2 kB / 411.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1072, allocations: 0 / 411.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002359/0.1074, allocations: 40 kB / 411.2 MB, free: 10.57 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 (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.0009974/0.1084, allocations: 0.9096 MB / 412.1 MB, free: 9.699 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002165/0.1087, allocations: 167.4 kB / 412.3 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1087, allocations: 4 kB / 412.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.1088, allocations: 119.4 kB / 412.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.109, allocations: 12 kB / 412.4 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.1105, allocations: 1.661 MB / 414.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.1108, allocations: 0.6961 MB / 414.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.742e-05/0.1108, allocations: 12 kB / 414.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.637e-05/0.1109, allocations: 23.42 kB / 414.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1109, allocations: 0 / 414.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.1392, allocations: 2.79 MB / 417.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002681/0.1395, allocations: 210 kB / 417.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.651/6.791, allocations: 0 / 417.8 MB, free: 3.922 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/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)