Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr StewartPlatform_StewartPlatform.Tests.Switch2_test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 113.7 kB / 18.84 MB, free: 2.879 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 192.9 kB / 22.11 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 225.6 MB / 250.8 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.03243/0.03243, allocations: 6.571 MB / 312.6 MB, free: 2.195 MB / 238.1 MB " [Timeout remaining time 180] Using package StewartPlatform with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/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(StewartPlatform.Tests.Switch2_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(StewartPlatform.Tests.Switch2_test,fileNamePrefix="StewartPlatform_StewartPlatform_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 67.89 kB / 435 MB, free: 16.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09269/0.09454, allocations: 53.68 MB / 488.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.004939/0.09948, allocations: 3.885 MB / 492.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00571/0.1052, allocations: 4.228 MB / 496.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.1054, allocations: 12 kB / 496.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007346/0.1062, allocations: 322.4 kB / 497.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002709/0.1089, allocations: 1.393 MB / 498.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.1093, allocations: 227.4 kB / 498.7 MB, free: 360 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003628/0.1129, allocations: 3.308 MB / 0.4903 GB, free: 13.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007419/0.1137, allocations: 0.5386 MB / 0.4908 GB, free: 12.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007478/0.1144, allocations: 0.6734 MB / 0.4915 GB, free: 11.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009629/0.1154, allocations: 0.9068 MB / 0.4924 GB, free: 10.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.1155, allocations: 116 kB / 0.4925 GB, free: 10.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001587/0.1171, allocations: 0.9552 MB / 0.4934 GB, free: 9.801 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008279/0.1179, allocations: 0.9662 MB / 0.4943 GB, free: 8.832 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008653/0.1188, allocations: 1.01 MB / 0.4953 GB, free: 7.816 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003004/0.1218, allocations: 3.056 MB / 0.4983 GB, free: 4.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1218, allocations: 0 / 0.4983 GB, free: 4.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1218, allocations: 0 / 0.4983 GB, free: 4.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.1218, allocations: 0 / 0.4983 GB, free: 4.75 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.004164/0.126, allocations: 2.588 MB / 0.5008 GB, free: 2.117 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.126, allocations: 12.03 kB / 0.5008 GB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001835/0.1262, allocations: 146.7 kB / 0.501 GB, free: 1.953 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002605/0.1288, allocations: 495 kB / 0.5015 GB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1861/0.3149, allocations: 4.466 MB / 0.5058 GB, free: 23.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003305/0.3152, allocations: 257.1 kB / 0.5061 GB, free: 23.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.3153, allocations: 74.22 kB / 0.5061 GB, free: 23.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003163/0.3185, allocations: 1.617 MB / 0.5077 GB, free: 23.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.3185, allocations: 0.6562 kB / 0.5077 GB, free: 23.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-05/0.3186, allocations: 30.25 kB / 0.5077 GB, free: 23.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.039e-05/0.3186, allocations: 38.61 kB / 0.5078 GB, free: 23.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003999/0.3226, allocations: 1.861 MB / 0.5096 GB, free: 23.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005533/0.3282, allocations: 3.921 MB / 0.5134 GB, free: 21.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.3299, allocations: 0.7092 MB / 0.5141 GB, free: 21.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.3314, allocations: 0.6221 MB / 0.5147 GB, free: 20.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.357e-05/0.3315, allocations: 9.938 kB / 0.5147 GB, free: 20.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001639/0.3331, allocations: 0.7385 MB / 0.5155 GB, free: 20.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 2.274e-06/0.3331, allocations: 3.875 kB / 0.5155 GB, free: 20.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.004795/0.3379, allocations: 1.99 MB / 0.5174 GB, free: 19.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.338, allocations: 132 kB / 0.5175 GB, free: 19.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0045/0.3425, allocations: 4.28 MB / 0.5217 GB, free: 17.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.674e-05/0.3425, allocations: 29.7 kB / 0.5217 GB, free: 17.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005009/0.343, allocations: 0.8605 MB / 0.5226 GB, free: 16.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.815e-05/0.3431, allocations: 81.12 kB / 0.5227 GB, free: 16.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.3433, allocations: 63.94 kB / 0.5227 GB, free: 16.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.364e-05/0.3433, allocations: 317.9 kB / 0.523 GB, free: 16.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.3447, allocations: 0.6121 MB / 0.5236 GB, free: 16.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.3461, allocations: 0.6712 MB / 0.5243 GB, free: 15.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002423/0.3486, allocations: 1.06 MB / 0.5253 GB, free: 15.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3486, allocations: 0 / 0.5253 GB, free: 15.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002856/0.3514, allocations: 1.375 MB / 0.5267 GB, free: 14.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3514, allocations: 8.75 kB / 0.5267 GB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3514, allocations: 0 / 0.5267 GB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3515, allocations: 0 / 0.5267 GB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006636/0.3521, allocations: 167.7 kB / 0.5268 GB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.3521, allocations: 5.578 kB / 0.5268 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.3533, allocations: 221.8 kB / 0.527 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.3533, allocations: 11.94 kB / 0.5271 GB, free: 13.75 MB / 366.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: 6 (switch2.mux.sequenceIn[3],switch2.mux.sequenceIn[2],switch2.mux.sequenceIn[1],switch2.count,$PRE.switch2.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0005349/0.3538, allocations: 0.6152 MB / 0.5277 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.354, allocations: 186.7 kB / 0.5278 GB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000204/0.3543, allocations: 203 kB / 0.528 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.3543, allocations: 0 / 0.528 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3543, allocations: 7.938 kB / 0.528 GB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.3543, allocations: 0 / 0.528 GB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.3556, allocations: 1.493 MB / 0.5295 GB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3556, allocations: 0 / 0.5295 GB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006826/0.3562, allocations: 160.7 kB / 0.5296 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3562, allocations: 3.984 kB / 0.5296 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.3563, allocations: 0 / 0.5296 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3563, allocations: 4 kB / 0.5297 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3563, allocations: 11.72 kB / 0.5297 GB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002827/0.3591, allocations: 1.415 MB / 0.531 GB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005796/0.3597, allocations: 322.8 kB / 0.5314 GB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/0.3599, allocations: 15.36 kB / 0.5314 GB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.361, allocations: 182 kB / 0.5315 GB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/0.3612, allocations: 83.81 kB / 0.5316 GB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-05/0.3613, allocations: 11.98 kB / 0.5316 GB, free: 8.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002761/0.364, allocations: 3.243 MB / 0.5348 GB, free: 5.734 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.364, allocations: 4 kB / 0.5348 GB, free: 5.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009259/0.365, allocations: 470.3 kB / 0.5353 GB, free: 5.309 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: 5 ($whenCondition1,switch2.count,switch2.mux.sequenceIn[1],switch2.mux.sequenceIn[2],switch2.mux.sequenceIn[3]) * Number of discrete states: 1 (switch2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.003669/0.3686, allocations: 2.362 MB / 0.5376 GB, free: 2.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002759/0.3714, allocations: 1.261 MB / 0.5388 GB, free: 1.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3714, allocations: 4 kB / 0.5388 GB, free: 1.676 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.3728, allocations: 0.6597 MB / 0.5394 GB, free: 1.016 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002818/0.3756, allocations: 1.171 MB / 0.5406 GB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03346/0.4091, allocations: 22.86 MB / 0.5629 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.4103, allocations: 1.543 MB / 0.5644 GB, free: 7.285 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001159/0.4115, allocations: 402.1 kB / 0.5648 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/0.4126, allocations: 0.6859 MB / 0.5655 GB, free: 6.211 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4126, allocations: 3.938 kB / 0.5655 GB, free: 6.207 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0974/0.51, allocations: 58.75 MB / 0.6228 GB, free: 11.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.18, allocations: 10.28 kB / 0.6229 GB, free: 11.8 MB / 462.1 MB " [Timeout remaining time 649] (rm -f StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe ; mkfifo StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe ; head -c 1048576 < StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe >> ../files/StewartPlatform_StewartPlatform.Tests.Switch2_test.sim & python3 -m fmpy simulate --output-file StewartPlatform_StewartPlatform.Tests.Switch2_test_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 StewartPlatform_StewartPlatform_Tests_Switch2_test.fmu > StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.627703326987103] Failed to read output from testmodel.py, exit status != 0: 11.279029744997388 11.293828058 11.169186946 Calling exit ...