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.001306/0.001306, allocations: 114.3 kB / 18.94 MB, free: 2.793 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.001465/0.001465, allocations: 219.9 kB / 22.26 MB, free: 5.211 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.568/1.568, allocations: 230.6 MB / 256 MB, free: 8.012 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.02402/0.02402, allocations: 3.261 MB / 315.7 MB, free: 15.84 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.002007/0.002007, allocations: 63.91 kB / 439.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09026/0.09227, allocations: 54.38 MB / 493.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.SSVTest): time 0.003224/0.09549, allocations: 1.682 MB / 495.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002957/0.09845, allocations: 1.878 MB / 497.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.228e-05/0.09852, allocations: 0 / 497.5 MB, free: 2.273 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.0007322/0.09925, allocations: 163.4 kB / 497.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.09941, allocations: 59.7 kB / 497.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.09967, allocations: 94.02 kB / 497.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001784/0.09984, allocations: 83.72 kB / 497.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.53e-05/0.09992, allocations: 7.984 kB / 497.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.107e-05/0.09999, allocations: 35.91 kB / 497.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.1002, allocations: 39.78 kB / 498 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.1002, allocations: 8 kB / 498 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004561/0.1006, allocations: 271.6 kB / 498.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.847e-05/0.1007, allocations: 15.98 kB / 498.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.442e-05/0.1008, allocations: 35.75 kB / 498.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004735/0.1013, allocations: 275.2 kB / 498.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1013, allocations: 0 / 498.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1013, allocations: 4 kB / 498.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.1013, allocations: 0 / 498.6 MB, free: 1.203 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.000678/0.1019, allocations: 411 kB / 499 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.102, allocations: 12.03 kB / 499 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.202e-05/0.102, allocations: 30.75 kB / 499 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.1021, allocations: 8.891 kB / 499 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.1024, allocations: 154.2 kB / 499.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.1024, allocations: 4.375 kB / 499.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.317e-05/0.1024, allocations: 7.938 kB / 499.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.1026, allocations: 91.31 kB / 499.3 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1026, allocations: 0 / 499.3 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.1026, allocations: 8 kB / 499.3 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1026, allocations: 0 / 499.3 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.1028, allocations: 43.97 kB / 499.3 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005207/0.1033, allocations: 284.7 kB / 499.6 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.1035, allocations: 65.25 kB / 499.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.1036, allocations: 45.69 kB / 499.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.1036, allocations: 0 / 499.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.1039, allocations: 146.8 kB / 499.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.062e-06/0.1039, allocations: 0 / 499.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.000499/0.1044, allocations: 219.2 kB / 0.4884 GB, free: 15.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.534e-05/0.1045, allocations: 114.8 kB / 0.4885 GB, free: 15.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.1047, allocations: 158.2 kB / 0.4886 GB, free: 15.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.1047, allocations: 29.7 kB / 0.4886 GB, free: 15.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.402e-05/0.1047, allocations: 96.12 kB / 0.4887 GB, free: 15.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.1048, allocations: 19.86 kB / 0.4887 GB, free: 15.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.113e-05/0.1048, allocations: 25.7 kB / 0.4888 GB, free: 15.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.105, allocations: 330.8 kB / 0.4891 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.93e-05/0.1051, allocations: 31.98 kB / 0.4891 GB, free: 14.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.504e-05/0.1052, allocations: 57.69 kB / 0.4892 GB, free: 14.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.1054, allocations: 145 kB / 0.4893 GB, free: 14.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1054, allocations: 0 / 0.4893 GB, free: 14.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00033/0.1057, allocations: 183.2 kB / 0.4895 GB, free: 14.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/0.1058, allocations: 37.69 kB / 0.4895 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1058, allocations: 96 / 0.4895 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.1058, allocations: 3.984 kB / 0.4895 GB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.565e-05/0.1059, allocations: 12.03 kB / 0.4895 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1059, allocations: 4.234 kB / 0.4895 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.858e-05/0.106, allocations: 19.86 kB / 0.4896 GB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.106, allocations: 12.05 kB / 0.4896 GB, free: 14.16 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.0001464/0.1061, allocations: 158.1 kB / 0.4897 GB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.1062, allocations: 11.95 kB / 0.4897 GB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.1062, allocations: 16.66 kB / 0.4898 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1062, allocations: 0 / 0.4898 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1062, allocations: 0 / 0.4898 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1062, allocations: 11.92 kB / 0.4898 GB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.1064, allocations: 176.6 kB / 0.4899 GB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1064, allocations: 4 kB / 0.4899 GB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5e-05/0.1065, allocations: 4 kB / 0.4899 GB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.1065, allocations: 4 kB / 0.4899 GB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.1065, allocations: 0 / 0.4899 GB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.1065, allocations: 11.92 kB / 0.49 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1065, allocations: 0 / 0.49 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.1069, allocations: 247.5 kB / 0.4902 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.1069, allocations: 11.95 kB / 0.4902 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.1069, allocations: 7.984 kB / 0.4902 GB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.632e-05/0.107, allocations: 4 kB / 0.4902 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.1071, allocations: 15.92 kB / 0.4902 GB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.1071, allocations: 4 kB / 0.4902 GB, free: 13.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.1072, allocations: 122.2 kB / 0.4903 GB, free: 13.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1072, allocations: 4 kB / 0.4904 GB, free: 13.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000361/0.1075, allocations: 87.69 kB / 0.4904 GB, free: 13.19 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.002047/0.1096, allocations: 1.098 MB / 0.4915 GB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003197/0.1099, allocations: 155.3 kB / 0.4917 GB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1099, allocations: 4 kB / 0.4917 GB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.1101, allocations: 115.4 kB / 0.4918 GB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.1103, allocations: 19.56 kB / 0.4918 GB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.1127, allocations: 1.858 MB / 0.4936 GB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.113, allocations: 0.6963 MB / 0.4943 GB, free: 9.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.66e-05/0.1131, allocations: 12.66 kB / 0.4943 GB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.144e-05/0.1132, allocations: 47.41 kB / 0.4943 GB, free: 9.105 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1132, allocations: 3.938 kB / 0.4943 GB, free: 9.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03484/0.148, allocations: 4.909 MB / 0.4991 GB, free: 4.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.34, allocations: 10.61 kB / 0.4991 GB, free: 4.195 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_SSVTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_SSVTest.fmu > ExternData_ExternData.Examples.SSVTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.165942640043795] Failed to read output from testmodel.py, exit status != 0: 11.478370948927477 11.652861908 11.548977297 Calling exit ...