Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.TIRTest.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.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",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.001292/0.001292, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.00146, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1531/0.1531, allocations: 2.928 MB / 293.3 MB, free: 3.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 63.91 kB / 354.8 MB, free: 3.656 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1097, allocations: 50.33 MB / 405.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002477/0.1122, allocations: 0.7465 MB / 405.9 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.1133, allocations: 0.7387 MB / 406.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.884e-05/0.1134, allocations: 0 / 406.6 MB, free: 15.8 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:313:3-338:14:writable] Warning: Pure function 'ExternData.TIRFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.1137, allocations: 23.86 kB / 406.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.1138, allocations: 31.86 kB / 406.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.316e-05/0.1138, allocations: 3.984 kB / 406.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.119e-05/0.1139, allocations: 15.94 kB / 406.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.211e-05/0.1139, allocations: 4 kB / 406.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.315e-05/0.1139, allocations: 3.984 kB / 406.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.1141, allocations: 23.86 kB / 406.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.1141, allocations: 4 kB / 406.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.228e-05/0.1142, allocations: 12 kB / 406.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.203e-05/0.1142, allocations: 0 / 406.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.305e-05/0.1142, allocations: 11.92 kB / 406.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.1144, allocations: 35.91 kB / 406.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1144, allocations: 0 / 406.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1144, allocations: 0 / 406.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1144, allocations: 0 / 406.8 MB, free: 15.63 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004318/0.1148, allocations: 339.6 kB / 407.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.1149, allocations: 15.89 kB / 407.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.37e-05/0.1149, allocations: 38.73 kB / 407.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.115, allocations: 0.9375 kB / 407.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.1152, allocations: 172.3 kB / 407.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.1152, allocations: 384 / 407.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.1152, allocations: 4.312 kB / 407.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.841e-05/0.1153, allocations: 43.97 kB / 407.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.1153, allocations: 3.938 kB / 407.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-06/0.1153, allocations: 0 / 407.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.1153, allocations: 8 kB / 407.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.425e-05/0.1154, allocations: 7.984 kB / 407.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005187/0.1159, allocations: 483.6 kB / 407.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.116, allocations: 169.1 kB / 408 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.468e-05/0.1161, allocations: 88.08 kB / 408.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.264e-05/0.1161, allocations: 75.28 kB / 408.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.895e-05/0.1162, allocations: 109.8 kB / 408.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.343e-06/0.1162, allocations: 0 / 408.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001145/0.1163, allocations: 33.61 kB / 408.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/0.1164, allocations: 126.7 kB / 408.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.1166, allocations: 121.8 kB / 408.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.1166, allocations: 25.7 kB / 408.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.905e-05/0.1167, allocations: 88.12 kB / 408.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.565e-06/0.1167, allocations: 0 / 408.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.754e-05/0.1167, allocations: 13.72 kB / 408.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1169, allocations: 310.8 kB / 409 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-06/0.1169, allocations: 4 kB / 409 MB, free: 13.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.059e-06/0.1169, allocations: 32 / 409 MB, free: 13.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.982e-05/0.1169, allocations: 83.22 kB / 409.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.939e-05/0.117, allocations: 79.22 kB / 409.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 8.983e-05/0.1171, allocations: 33.75 kB / 409.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.1171, allocations: 87.27 kB / 409.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.78e-05/0.1172, allocations: 75.28 kB / 409.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.605e-05/0.1173, allocations: 154.5 kB / 409.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.346e-05/0.1173, allocations: 75.31 kB / 409.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.515e-05/0.1174, allocations: 166.5 kB / 409.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.1175, allocations: 79.22 kB / 409.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.72e-05/0.1176, allocations: 79.28 kB / 409.9 MB, free: 12.25 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001717/0.1178, allocations: 264.3 kB / 410.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.842e-05/0.1179, allocations: 108.9 kB / 410.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.406e-05/0.1179, allocations: 104.5 kB / 410.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/0.118, allocations: 192.2 kB / 410.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001008/0.1182, allocations: 180.2 kB / 410.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001009/0.1183, allocations: 180.2 kB / 410.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003894/0.1187, allocations: 413.1 kB / 411.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.383e-05/0.1187, allocations: 101 kB / 411.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.809e-05/0.1188, allocations: 116.9 kB / 411.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.191e-05/0.1189, allocations: 176.3 kB / 411.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002043/0.1191, allocations: 180.2 kB / 411.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.465e-05/0.1192, allocations: 184.2 kB / 412 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001707/0.1194, allocations: 184.2 kB / 412.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001963/0.1196, allocations: 315.6 kB / 412.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.1197, allocations: 186.1 kB / 412.7 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.1199, allocations: 184.2 kB / 412.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.12, allocations: 101 kB / 413 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.1202, allocations: 184.2 kB / 413.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.872e-05/0.1203, allocations: 105 kB / 413.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.482e-05/0.1204, allocations: 95.28 kB / 413.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1204, allocations: 0 / 413.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000439/0.1208, allocations: 7.984 kB / 413.4 MB, free: 8.535 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0008521/0.1217, allocations: 0.8717 MB / 414.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.691e-05/0.1218, allocations: 432 / 414.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.1218, allocations: 0 / 414.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.984e-06/0.1218, allocations: 0 / 414.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.1225, allocations: 462.9 kB / 414.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.1243, allocations: 1.621 MB / 416.3 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.1248, allocations: 0.6805 MB / 417 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.133e-05/0.1248, allocations: 0 / 417 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.916e-05/0.1248, allocations: 15.44 kB / 417 MB, free: 4.789 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1248, allocations: 0 / 417 MB, free: 4.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.1478, allocations: 1.454 MB / 418.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/7.905, allocations: 0 / 418.5 MB, free: 3.383 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.TIRTest.pipe ; mkfifo ExternData_ExternData.Examples.TIRTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.TIRTest.pipe >> ../files/ExternData_ExternData.Examples.TIRTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_TIRTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_TIRTest.fmu > ExternData_ExternData.Examples.TIRTest.pipe 2>&1)