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) 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/StewartPlatform 1.0.2/package.mo", uses=false) 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: translateModel(StewartPlatform.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="StewartPlatform_StewartPlatform.Tests.Switch2_test") translateModel(StewartPlatform.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="StewartPlatform_StewartPlatform.Tests.Switch2_test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 98.83 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 196.6 kB / 17.29 MB, free: 5.48 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.412/1.412, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/StewartPlatform 1.0.2/package.mo): time 0.0308/0.0308, allocations: 6.493 MB / 297.6 MB, free: 8.375 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.89 kB / 360.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1849, allocations: 50.85 MB / 411 MB, free: 28.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(StewartPlatform.Tests.Switch2_test): time 0.003906/0.1889, allocations: 3.863 MB / 414.9 MB, free: 24.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00476/0.1937, allocations: 4.19 MB / 419.1 MB, free: 20.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002372/0.1939, allocations: 12 kB / 419.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006512/0.1946, allocations: 306.2 kB / 419.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002339/0.197, allocations: 1.38 MB / 420.8 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003938/0.1974, allocations: 227.5 kB / 421 MB, free: 18.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002805/0.2002, allocations: 3.319 MB / 424.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008392/0.2011, allocations: 1.186 MB / 425.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005187/0.2016, allocations: 0.6656 MB / 426.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005974/0.2022, allocations: 0.8328 MB / 427 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.2024, allocations: 116 kB / 427.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.2037, allocations: 1.084 MB / 428.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004897/0.2042, allocations: 0.9197 MB / 429.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005693/0.2048, allocations: 0.9171 MB / 430 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001943/0.2068, allocations: 2.886 MB / 432.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2068, allocations: 0 / 432.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2068, allocations: 0 / 432.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.2068, allocations: 0 / 432.9 MB, free: 6.316 MB / 302.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.003128/0.21, allocations: 2.395 MB / 435.3 MB, free: 3.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.21, allocations: 8.031 kB / 435.3 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.2111, allocations: 310.3 kB / 435.6 MB, free: 3.551 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002546/0.2137, allocations: 1.91 MB / 437.5 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002531/0.2139, allocations: 259.5 kB / 437.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.214, allocations: 64.38 kB / 437.9 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002786/0.2168, allocations: 1.623 MB / 439.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.2169, allocations: 0 / 439.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.217, allocations: 39.91 kB / 439.5 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.731e-05/0.217, allocations: 33.98 kB / 439.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004231/0.2213, allocations: 1.858 MB / 441.4 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004707/0.226, allocations: 3.484 MB / 444.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.2279, allocations: 0.7244 MB / 445.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.2296, allocations: 0.6291 MB / 446.2 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.367e-05/0.2296, allocations: 4 kB / 446.2 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001855/0.2315, allocations: 0.7492 MB / 447 MB, free: 8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 2.164e-06/0.2315, allocations: 4 kB / 447 MB, free: 7.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.00527/0.2368, allocations: 1.972 MB / 449 MB, free: 6.016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/0.2369, allocations: 132.5 kB / 449.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002999/0.2399, allocations: 2.419 MB / 451.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.519e-05/0.24, allocations: 33.7 kB / 451.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006475/0.2406, allocations: 0.7824 MB / 452.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.733e-05/0.2407, allocations: 82.89 kB / 452.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003233/0.2411, allocations: 201.4 kB / 452.6 MB, free: 2.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2412, allocations: 337.9 kB / 452.9 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001952/0.2431, allocations: 0.8639 MB / 453.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001988/0.2451, allocations: 0.961 MB / 454.8 MB, free: 104 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003231/0.2484, allocations: 1.377 MB / 456.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2484, allocations: 0 / 456.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004234/0.2526, allocations: 1.954 MB / 458.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.2527, allocations: 7.938 kB / 458.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.2527, allocations: 3.984 kB / 458.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.2527, allocations: 7.984 kB / 458.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009359/0.2537, allocations: 203.7 kB / 458.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.2537, allocations: 0 / 458.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.2551, allocations: 207.2 kB / 458.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-05/0.2552, allocations: 16 kB / 458.5 MB, free: 12.31 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (53): * Single equations (assignments): 50 * Array equations: 3 * 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.000863/0.2561, allocations: 0.6106 MB / 459.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/0.2563, allocations: 165.8 kB / 459.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002455/0.2566, allocations: 172.4 kB / 459.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2566, allocations: 4 kB / 459.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.2566, allocations: 3.984 kB / 459.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2566, allocations: 0 / 459.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.2581, allocations: 1.408 MB / 460.9 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2581, allocations: 4 kB / 460.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007932/0.2589, allocations: 171.7 kB / 461.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.2589, allocations: 3.938 kB / 461.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.292e-05/0.259, allocations: 8 kB / 461.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.259, allocations: 0 / 461.1 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.259, allocations: 3.984 kB / 461.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003539/0.2625, allocations: 1.382 MB / 462.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004497/0.263, allocations: 270.9 kB / 462.7 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/0.2632, allocations: 7.938 kB / 462.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.2643, allocations: 155.8 kB / 462.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002479/0.2645, allocations: 79.89 kB / 463 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.749e-05/0.2646, allocations: 15.98 kB / 463 MB, free: 7.746 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00218/0.2668, allocations: 1.747 MB / 464.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2668, allocations: 4 kB / 464.7 MB, free: 5.973 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00122/0.268, allocations: 0.5384 MB / 465.3 MB, free: 5.434 MB / 334.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.0009485/0.269, allocations: 0.4909 MB / 465.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003892/0.2729, allocations: 1.599 MB / 467.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2729, allocations: 0 / 467.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.2747, allocations: 0.6555 MB / 468 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003044/0.2777, allocations: 0.9516 MB / 469 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00501/0.2828, allocations: 3.384 MB / 472.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.284, allocations: 1.543 MB / 473.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009165/0.2849, allocations: 317.4 kB / 474.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000456/0.2854, allocations: 87.42 kB / 474.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.033e-06/0.2854, allocations: 0 / 474.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of Templates: time 0.04766/0.333, allocations: 32.21 MB / 0.4946 GB, free: 12.42 MB / 382.1 MB make -j1 -f StewartPlatform_StewartPlatform.Tests.Switch2_test.makefile (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 & ./StewartPlatform_StewartPlatform.Tests.Switch2_test -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > StewartPlatform_StewartPlatform.Tests.Switch2_test.pipe 2>&1)