Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.SSVTest.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.001344/0.001344, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001532/0.001532, allocations: 216.1 kB / 22.25 MB, free: 5.125 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.477/1.477, allocations: 230.6 MB / 256 MB, free: 7.984 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.01564/0.01564, allocations: 3.274 MB / 315.7 MB, free: 15.91 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.SSVTest,fileNamePrefix="ExternData_ExternData_Examples_SSVTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.SSVTest,fileNamePrefix="ExternData_ExternData_Examples_SSVTest",fmuType="me",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.001993/0.001993, allocations: 63.89 kB / 439.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1031, allocations: 54.38 MB / 493.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.SSVTest): time 0.003492/0.1066, allocations: 1.686 MB / 495.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.1097, allocations: 1.87 MB / 497.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.708e-05/0.1097, allocations: 4 kB / 497.5 MB, free: 2.484 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:147:3-177:14:writable] Warning: Pure function 'ExternData.SSVFile' contains a call to impure function 'ExternData.Types.ExternXML2File.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0008315/0.1106, allocations: 171.3 kB / 497.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.1107, allocations: 55.77 kB / 497.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.111, allocations: 94.25 kB / 497.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.1111, allocations: 87.7 kB / 497.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.17e-05/0.1112, allocations: 4 kB / 497.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.265e-05/0.1113, allocations: 31.92 kB / 497.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.1115, allocations: 43.77 kB / 498 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.1115, allocations: 8 kB / 498 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004423/0.112, allocations: 267.7 kB / 498.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.769e-05/0.1121, allocations: 19.92 kB / 498.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.433e-05/0.1121, allocations: 43.73 kB / 498.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004572/0.1126, allocations: 263.2 kB / 498.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1126, allocations: 4 kB / 498.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1126, allocations: 0 / 498.6 MB, free: 1.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1126, allocations: 0 / 498.6 MB, free: 1.414 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007739/0.1134, allocations: 411 kB / 499 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1134, allocations: 12.03 kB / 499 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.704e-05/0.1135, allocations: 34.73 kB / 499 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.935e-05/0.1135, allocations: 12.89 kB / 499 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/0.1139, allocations: 158.2 kB / 499.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.1139, allocations: 384 / 499.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.1139, allocations: 11.94 kB / 499.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.1141, allocations: 87.38 kB / 499.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1141, allocations: 0 / 499.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.1141, allocations: 4 kB / 499.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1141, allocations: 0 / 499.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.1143, allocations: 47.91 kB / 499.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004522/0.1147, allocations: 272.8 kB / 499.6 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.1149, allocations: 77.12 kB / 499.7 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.115, allocations: 45.75 kB / 499.7 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/0.115, allocations: 0 / 499.7 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.1153, allocations: 130.8 kB / 499.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.1153, allocations: 3.938 kB / 499.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004958/0.1158, allocations: 235.4 kB / 0.4884 GB, free: 15.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/0.1158, allocations: 106.8 kB / 0.4885 GB, free: 15.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.116, allocations: 162 kB / 0.4886 GB, free: 15.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.116, allocations: 25.7 kB / 0.4886 GB, free: 15.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.657e-05/0.1161, allocations: 92.14 kB / 0.4887 GB, free: 15.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/0.1161, allocations: 27.78 kB / 0.4888 GB, free: 15.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.975e-05/0.1162, allocations: 29.78 kB / 0.4888 GB, free: 15.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1164, allocations: 326.8 kB / 0.4891 GB, free: 14.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.282e-05/0.1165, allocations: 31.98 kB / 0.4891 GB, free: 14.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.108e-05/0.1165, allocations: 53.69 kB / 0.4892 GB, free: 14.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.1168, allocations: 145.1 kB / 0.4893 GB, free: 14.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1168, allocations: 0 / 0.4893 GB, free: 14.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003201/0.1171, allocations: 187.2 kB / 0.4895 GB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.542e-05/0.1172, allocations: 41.69 kB / 0.4895 GB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1172, allocations: 0 / 0.4895 GB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1172, allocations: 4 kB / 0.4895 GB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.681e-05/0.1173, allocations: 11.94 kB / 0.4895 GB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.1173, allocations: 3.984 kB / 0.4896 GB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.1173, allocations: 11.88 kB / 0.4896 GB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.228e-06/0.1174, allocations: 4 kB / 0.4896 GB, free: 14.37 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 5 * 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.0001512/0.1175, allocations: 163.6 kB / 0.4897 GB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.065e-05/0.1175, allocations: 7.953 kB / 0.4897 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.115e-05/0.1176, allocations: 12.7 kB / 0.4897 GB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1176, allocations: 0 / 0.4897 GB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.1176, allocations: 8.062 kB / 0.4898 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.1176, allocations: 3.938 kB / 0.4898 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.1178, allocations: 180.6 kB / 0.4899 GB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1178, allocations: 0 / 0.4899 GB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.114e-05/0.1178, allocations: 8 kB / 0.4899 GB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1178, allocations: 0 / 0.4899 GB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.1179, allocations: 15.98 kB / 0.49 GB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1179, allocations: 0 / 0.49 GB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1179, allocations: 0 / 0.49 GB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003997/0.1183, allocations: 243.4 kB / 0.4902 GB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.413e-05/0.1183, allocations: 16.03 kB / 0.4902 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.1183, allocations: 7.984 kB / 0.4902 GB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.553e-05/0.1184, allocations: 8 kB / 0.4902 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.1184, allocations: 15.92 kB / 0.4902 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.1185, allocations: 4 kB / 0.4902 GB, free: 13.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.1186, allocations: 122.2 kB / 0.4903 GB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1186, allocations: 3.938 kB / 0.4904 GB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003814/0.119, allocations: 91.69 kB / 0.4904 GB, free: 13.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 4 * 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.002056/0.121, allocations: 1.105 MB / 0.4915 GB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003149/0.1213, allocations: 147.4 kB / 0.4917 GB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1213, allocations: 3.938 kB / 0.4917 GB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.1215, allocations: 111.4 kB / 0.4918 GB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.1217, allocations: 19.92 kB / 0.4918 GB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.1241, allocations: 1.85 MB / 0.4936 GB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.1244, allocations: 0.7002 MB / 0.4943 GB, free: 9.379 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.919e-05/0.1245, allocations: 12.66 kB / 0.4943 GB, free: 9.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.034e-05/0.1245, allocations: 39.41 kB / 0.4943 GB, free: 9.324 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1245, allocations: 0 / 0.4943 GB, free: 9.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04535/0.1699, allocations: 4.933 MB / 0.4991 GB, free: 4.406 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.57, allocations: 11.92 kB / 0.4992 GB, free: 4.395 MB / 366.1 MB " [Timeout remaining time 648] (rm -f ExternData_ExternData.Examples.SSVTest.pipe ; mkfifo ExternData_ExternData.Examples.SSVTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.SSVTest.pipe >> ../files/ExternData_ExternData.Examples.SSVTest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.SSVTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_SSVTest.fmu > ExternData_ExternData.Examples.SSVTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.52041756700055] Failed to read output from testmodel.py, exit status != 0: 11.706653122993885 11.957400816 11.841724615 Calling exit ...