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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 113 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 213.6 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.444/1.444, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01517/0.01517, allocations: 3.265 MB / 316.5 MB, free: 15.83 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternData.Examples.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 63.91 kB / 440.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1113, allocations: 54.38 MB / 494.7 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002575/0.1139, allocations: 0.7485 MB / 495.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.1155, allocations: 0.8256 MB / 496.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.914e-05/0.1156, allocations: 4 kB / 496.3 MB, free: 4.23 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:301:3-326:14:writable] Warning: Pure function 'ExternData.TIRFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.1159, allocations: 19.94 kB / 496.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.1161, allocations: 27.84 kB / 496.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.534e-05/0.1161, allocations: 0 / 496.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.898e-05/0.1162, allocations: 23.92 kB / 496.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.008e-05/0.1163, allocations: 0 / 496.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.72e-05/0.1163, allocations: 11.92 kB / 496.4 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.1165, allocations: 8 kB / 496.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.1166, allocations: 0 / 496.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.91e-05/0.1166, allocations: 19.98 kB / 496.4 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.845e-05/0.1166, allocations: 7.938 kB / 496.4 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.819e-05/0.1167, allocations: 7.938 kB / 496.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.1168, allocations: 31.89 kB / 496.5 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1168, allocations: 0 / 496.5 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1169, allocations: 0 / 496.5 MB, free: 4.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.1169, allocations: 0 / 496.5 MB, free: 4.074 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.0004935/0.1174, allocations: 266.2 kB / 496.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.1174, allocations: 12.03 kB / 496.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.664e-05/0.1174, allocations: 8.125 kB / 496.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.12e-05/0.1174, allocations: 30.75 kB / 496.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.1175, allocations: 4.938 kB / 496.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.1176, allocations: 122.4 kB / 496.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.1176, allocations: 384 / 496.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.1176, allocations: 4.375 kB / 496.9 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.1177, allocations: 43.73 kB / 496.9 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1178, allocations: 4 kB / 497 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-06/0.1178, allocations: 0 / 497 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1178, allocations: 0 / 497 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.337e-05/0.1178, allocations: 7.938 kB / 497 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004065/0.1182, allocations: 446.7 kB / 497.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.1183, allocations: 177.1 kB / 497.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.158e-05/0.1184, allocations: 80.14 kB / 497.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.405e-05/0.1184, allocations: 79.28 kB / 497.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.648e-05/0.1185, allocations: 109.8 kB / 497.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 7.71e-07/0.1185, allocations: 0 / 497.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.116e-05/0.1185, allocations: 25.7 kB / 497.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/0.1186, allocations: 134.6 kB / 498 MB, free: 2.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.1188, allocations: 129.7 kB / 498.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.1188, allocations: 25.7 kB / 498.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.742e-05/0.1188, allocations: 84.14 kB / 498.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.653e-06/0.1188, allocations: 0 / 498.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.327e-05/0.1189, allocations: 13.72 kB / 498.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.119, allocations: 322.8 kB / 498.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.089e-06/0.119, allocations: 0 / 498.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.946e-06/0.119, allocations: 4 kB / 498.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.246e-05/0.1191, allocations: 75.28 kB / 498.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.471e-05/0.1191, allocations: 75.28 kB / 498.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.402e-05/0.1192, allocations: 33.7 kB / 498.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.677e-05/0.1192, allocations: 79.28 kB / 498.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.64e-05/0.1193, allocations: 83.22 kB / 498.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.774e-05/0.1193, allocations: 150.6 kB / 499 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.421e-05/0.1194, allocations: 87.16 kB / 499.1 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.819e-05/0.1194, allocations: 154.7 kB / 499.3 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.478e-05/0.1195, allocations: 83.3 kB / 499.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.105e-05/0.1196, allocations: 79.22 kB / 499.4 MB, free: 0.8867 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.0001534/0.1197, allocations: 264.3 kB / 499.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.204e-05/0.1198, allocations: 109 kB / 499.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.062e-05/0.1199, allocations: 108.4 kB / 499.9 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001329/0.12, allocations: 184.2 kB / 0.4884 GB, free: 204 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001398/0.1202, allocations: 176.3 kB / 0.4885 GB, free: 20 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001452/0.1203, allocations: 184.2 kB / 0.4887 GB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003513/0.1207, allocations: 380.2 kB / 0.4891 GB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.037e-05/0.1207, allocations: 108.9 kB / 0.4892 GB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.839e-05/0.1208, allocations: 113 kB / 0.4893 GB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001133/0.1209, allocations: 180.3 kB / 0.4895 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.121, allocations: 180.2 kB / 0.4896 GB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.802e-05/0.1211, allocations: 176.3 kB / 0.4898 GB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.176e-05/0.1212, allocations: 192.2 kB / 0.49 GB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.1214, allocations: 307.7 kB / 0.4903 GB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.05e-05/0.1214, allocations: 108.9 kB / 0.4904 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.1215, allocations: 184.2 kB / 0.4906 GB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.1216, allocations: 104.9 kB / 0.4907 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.1218, allocations: 180.3 kB / 0.4908 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.534e-05/0.1218, allocations: 101 kB / 0.4909 GB, free: 13.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.352e-05/0.1219, allocations: 103.2 kB / 0.491 GB, free: 13.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1219, allocations: 0 / 0.491 GB, free: 13.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.1222, allocations: 4 kB / 0.491 GB, free: 13.31 MB / 366.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.0008684/0.1231, allocations: 0.8753 MB / 0.4919 GB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.766e-05/0.1231, allocations: 4 kB / 0.4919 GB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1231, allocations: 0 / 0.4919 GB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.557e-06/0.1231, allocations: 3.938 kB / 0.4919 GB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005921/0.1237, allocations: 463.6 kB / 0.4923 GB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.1252, allocations: 1.621 MB / 0.4939 GB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.1256, allocations: 0.6774 MB / 0.4946 GB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.927e-05/0.1256, allocations: 144 / 0.4946 GB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.082e-05/0.1256, allocations: 15.42 kB / 0.4946 GB, free: 9.555 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1256, allocations: 0 / 0.4946 GB, free: 9.555 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.1486, allocations: 1.672 MB / 0.4962 GB, free: 8.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.09, allocations: 11.58 kB / 0.4962 GB, free: 8.027 MB / 366.1 MB " [Timeout remaining time 649] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_TIRTest.fmu > ExternData_ExternData.Examples.TIRTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.90193564107176] Failed to read output from testmodel.py, exit status != 0: 11.251694996957667 11.510593461000001 11.389931255 Calling exit ...