Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.001099/0.001099, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001143/0.001143, allocations: 177.3 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.8839/0.8839, allocations: 177.2 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.03649/0.03649, allocations: 7.19 MB / 267.4 MB, free: 5.953 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.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: translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.72e-07/9.72e-07, allocations: 0 / 286 MB, free: 3.367 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.199e-05/1.297e-05, allocations: 6.25 kB / 286 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.115/0.115, allocations: 9.286 MB / 295.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004159/0.1192, allocations: 2.956 MB / 298.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005674/0.1197, allocations: 43.31 kB / 298.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006901/0.1204, allocations: 441.8 kB / 298.8 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002233/0.1227, allocations: 1.653 MB / 300.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.123, allocations: 185.7 kB / 300.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002098/0.1251, allocations: 2.936 MB / 303.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007115/0.1258, allocations: 0.9572 MB / 304.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.1269, allocations: 1.592 MB / 306.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.128, allocations: 1.398 MB / 307.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002602/0.1282, allocations: 261.7 kB / 307.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007501/0.129, allocations: 0.8524 MB / 308.6 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005044/0.1295, allocations: 1.418 MB / 310 MB, free: 8.105 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004901/0.13, allocations: 0.946 MB / 310.9 MB, free: 7.156 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001667/0.1317, allocations: 3.625 MB / 314.6 MB, free: 3.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.1317, allocations: 3.938 kB / 314.6 MB, free: 3.516 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.031e-06/0.1317, allocations: 0 / 314.6 MB, free: 3.516 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.148e-05/0.1317, allocations: 0 / 314.6 MB, free: 3.516 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1310 * Number of variables: 1310 Notification: Performance of Generate backend data structure: time 0.004006/0.1357, allocations: 4.206 MB / 318.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.937e-05/0.1357, allocations: 8.625 kB / 318.8 MB, free: 15.25 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002583/0.1383, allocations: 1.062 MB / 319.8 MB, free: 14.19 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.1395, allocations: 1.101 MB / 320.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.01e-05/0.1396, allocations: 176.8 kB / 321.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002821/0.1399, allocations: 235.9 kB / 321.4 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004047/0.1439, allocations: 4.024 MB / 325.4 MB, free: 8.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.802e-05/0.144, allocations: 31.75 kB / 325.4 MB, free: 8.129 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002099/0.1442, allocations: 111.9 kB / 325.5 MB, free: 8.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001581/0.1458, allocations: 1.819 MB / 327.3 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0038/0.1496, allocations: 2.245 MB / 329.6 MB, free: 3.945 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01517/0.1648, allocations: 21.53 MB / 351.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002892/0.1677, allocations: 1.373 MB / 352.5 MB, free: 12.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003635/0.168, allocations: 311.9 kB / 352.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003521/0.1715, allocations: 2.98 MB / 355.8 MB, free: 9.133 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.1716, allocations: 51.98 kB / 355.8 MB, free: 9.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=155): time 2.464e-06/0.1716, allocations: 3.938 kB / 355.8 MB, free: 9.066 MB / 314.7 MB Notification: Performance of matching and sorting (n=193): time 0.00625/0.1778, allocations: 3.595 MB / 359.4 MB, free: 5.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.1779, allocations: 73.39 kB / 359.5 MB, free: 5.395 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.1793, allocations: 2.055 MB / 361.5 MB, free: 3.297 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.515e-05/0.1793, allocations: 53.7 kB / 361.6 MB, free: 3.238 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008925/0.1802, allocations: 2.414 MB / 364 MB, free: 0.793 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003371/0.1806, allocations: 0.7323 MB / 364.7 MB, free: 56 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007141/0.1813, allocations: 0.9021 MB / 365.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.007e-05/0.1814, allocations: 353.8 kB / 366 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005833/0.182, allocations: 496.3 kB / 366.5 MB, free: 14.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.1835, allocations: 2.993 MB / 369.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/0.1861, allocations: 4.125 MB / 373.6 MB, free: 4.586 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.441e-05/0.1862, allocations: 28 kB / 373.6 MB, free: 4.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.003223/0.1894, allocations: 3.278 MB / 376.9 MB, free: 1.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.129e-05/0.1894, allocations: 44 kB / 376.9 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.542e-05/0.1895, allocations: 92 kB / 377 MB, free: 1.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008534/0.1903, allocations: 493.6 kB / 377.5 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.1919, allocations: 0.9825 MB / 378.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004262/0.1961, allocations: 6.188 MB / 384.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.1973, allocations: 187.9 kB / 384.9 MB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/0.1975, allocations: 244 kB / 385.1 MB, free: 8.73 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 553 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,19,56.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0007285/0.1983, allocations: 495.6 kB / 385.6 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.1985, allocations: 179.8 kB / 385.8 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.1997, allocations: 1.083 MB / 386.8 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.271e-05/0.1998, allocations: 24 kB / 386.9 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1998, allocations: 8.062 kB / 386.9 MB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.1998, allocations: 7.969 kB / 386.9 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004208/0.204, allocations: 3.837 MB / 390.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.204, allocations: 8 kB / 390.7 MB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004336/0.2044, allocations: 227.6 kB / 391 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007512/0.2052, allocations: 428.4 kB / 391.4 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.898e-05/0.2053, allocations: 35.98 kB / 391.4 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003103/0.2084, allocations: 5.071 MB / 396.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.2084, allocations: 7.938 kB / 396.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.21, allocations: 1.552 MB / 398 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.2101, allocations: 202.5 kB / 398.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.2103, allocations: 39.98 kB / 398.3 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003556/0.2107, allocations: 35.98 kB / 398.3 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.2108, allocations: 133 kB / 398.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.997e-05/0.2109, allocations: 43.98 kB / 398.5 MB, free: 10.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006034/0.2115, allocations: 0.7351 MB / 399.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2115, allocations: 0 / 399.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001827/0.2133, allocations: 0.8163 MB / 400 MB, free: 9.199 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.w) * 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 (135): * Single equations (assignments): 128 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,15,56.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002356/0.2135, allocations: 163.9 kB / 400.2 MB, free: 9.027 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002178/0.2157, allocations: 2.432 MB / 402.6 MB, free: 6.562 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.283e-05/0.2158, allocations: 55.94 kB / 402.7 MB, free: 6.504 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007777/0.2166, allocations: 0.9579 MB / 403.6 MB, free: 5.504 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008006/0.2174, allocations: 321 kB / 404 MB, free: 5.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006128/0.2235, allocations: 6.193 MB / 410.1 MB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008224/0.2243, allocations: 1.022 MB / 411.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007191/0.225, allocations: 347.4 kB / 411.5 MB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004955/0.2255, allocations: 421.2 kB / 411.9 MB, free: 13.11 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2255, allocations: 0 / 411.9 MB, free: 13.11 MB / 378.7 MB Notification: Performance of Templates: time 0.03487/0.2604, allocations: 25.96 MB / 437.9 MB, free: 3.527 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine -abortSlowSimulation -alarm=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.594128947239369]