Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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.0008442/0.0008442, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008777/0.0008777, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.8799/0.8799, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.02739/0.02739, allocations: 7.12 MB / 266.3 MB, free: 6.32 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.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(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.883e-05/2.008e-05, allocations: 2.281 kB / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.006625/0.006645, allocations: 8.503 MB / 400.9 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004591/0.01124, allocations: 2.752 MB / 403.6 MB, free: 8.684 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009035/0.01214, allocations: 43.88 kB / 403.7 MB, free: 8.641 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008413/0.01298, allocations: 436.9 kB / 404.1 MB, free: 8.211 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002898/0.01588, allocations: 1.637 MB / 405.7 MB, free: 6.566 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.01624, allocations: 175.7 kB / 405.9 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002405/0.01864, allocations: 2.905 MB / 408.8 MB, free: 3.484 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.01984, allocations: 0.8994 MB / 409.7 MB, free: 2.555 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00193/0.02177, allocations: 1.57 MB / 411.3 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1461/0.1679, allocations: 1.443 MB / 412.7 MB, free: 16.79 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009331/0.1688, allocations: 260.8 kB / 413 MB, free: 16.79 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001599/0.1704, allocations: 0.8546 MB / 413.8 MB, free: 16.79 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.1716, allocations: 1.412 MB / 415.3 MB, free: 16.79 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001458/0.1731, allocations: 0.9372 MB / 416.2 MB, free: 16.79 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007011/0.1801, allocations: 5.439 MB / 421.6 MB, free: 16.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1801, allocations: 0 / 421.6 MB, free: 16.38 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1801, allocations: 1.219 kB / 421.6 MB, free: 16.38 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001627/0.1803, allocations: 0 / 421.6 MB, free: 16.38 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01219/0.1924, allocations: 5.24 MB / 426.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.1925, allocations: 15.38 kB / 426.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001082/0.1936, allocations: 0.6049 MB / 427.5 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004152/0.1977, allocations: 1.91 MB / 429.4 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/0.2009, allocations: 1.445 MB / 430.9 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.201, allocations: 177.8 kB / 431 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004693/0.2015, allocations: 230.8 kB / 431.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01122/0.2127, allocations: 8.944 MB / 440.2 MB, free: 7.465 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-05/0.2128, allocations: 23.97 kB / 440.2 MB, free: 7.465 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002647/0.213, allocations: 106.5 kB / 440.3 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001793/0.2148, allocations: 2.021 MB / 442.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.2261, allocations: 7.902 MB / 450.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03371/0.2598, allocations: 27.03 MB / 477.3 MB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004956/0.2648, allocations: 2.387 MB / 479.7 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.2659, allocations: 0.9118 MB / 480.6 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006026/0.272, allocations: 3.847 MB / 484.4 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.272, allocations: 43.88 kB / 484.5 MB, free: 11.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=155): time 4.238e-06/0.272, allocations: 0 / 484.5 MB, free: 11.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=197): time 0.01512/0.2871, allocations: 9.685 MB / 494.2 MB, free: 2.293 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009513/0.2966, allocations: 11.11 MB / 0.4934 GB, free: 6.738 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004923/0.3015, allocations: 3.167 MB / 0.4965 GB, free: 3.559 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003053/0.3018, allocations: 49.7 kB / 0.4966 GB, free: 3.504 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.3031, allocations: 2.439 MB / 0.4989 GB, free: 1.074 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006413/0.3038, allocations: 0.7375 MB / 0.4997 GB, free: 356 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009953/0.3048, allocations: 0.9411 MB / 0.5006 GB, free: 15.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.041e-05/0.3048, allocations: 301.1 kB / 0.5009 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/0.307, allocations: 1.524 MB / 0.5024 GB, free: 13.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003218/0.3102, allocations: 4.104 MB / 0.5064 GB, free: 8.199 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005989/0.3162, allocations: 6.072 MB / 0.5123 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.258e-05/0.3163, allocations: 28 kB / 0.5123 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.007927/0.3242, allocations: 6.024 MB / 0.5182 GB, free: 10.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.699e-05/0.3242, allocations: 44 kB / 0.5182 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.96e-05/0.3243, allocations: 88 kB / 0.5183 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008705/0.3252, allocations: 0.5765 MB / 0.5189 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/0.3271, allocations: 1.029 MB / 0.5199 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007873/0.335, allocations: 8.858 MB / 0.5286 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/0.3378, allocations: 244.2 kB / 0.5288 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000527/0.3384, allocations: 287.9 kB / 0.5291 GB, free: 15.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * 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 (554): * Single equations (assignments): 547 * 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 {(4,20,68.8%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.003007/0.3414, allocations: 1.724 MB / 0.5307 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004251/0.3418, allocations: 282.1 kB / 0.531 GB, free: 13.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003546/0.3453, allocations: 2.839 MB / 0.5338 GB, free: 10.49 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.324e-05/0.3454, allocations: 35.92 kB / 0.5338 GB, free: 10.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.3454, allocations: 8 kB / 0.5338 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.3454, allocations: 7.969 kB / 0.5338 GB, free: 10.44 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/0.3573, allocations: 8.694 MB / 0.5423 GB, free: 1.621 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.3573, allocations: 4 kB / 0.5423 GB, free: 1.617 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004765/0.3578, allocations: 207.7 kB / 0.5425 GB, free: 1.414 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009149/0.3587, allocations: 0.5932 MB / 0.5431 GB, free: 0.8125 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.705e-05/0.3588, allocations: 35.98 kB / 0.5431 GB, free: 0.7773 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007372/0.3662, allocations: 8.971 MB / 0.5519 GB, free: 7.477 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004628/0.3708, allocations: 5.649 MB / 0.5574 GB, free: 1.582 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004828/0.3756, allocations: 4.154 MB / 0.5615 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007572/0.3764, allocations: 278.1 kB / 0.5617 GB, free: 13.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.3766, allocations: 36.7 kB / 0.5618 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005597/0.3772, allocations: 88.52 kB / 0.5619 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002632/0.3775, allocations: 142.7 kB / 0.562 GB, free: 12.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.924e-05/0.3775, allocations: 55.98 kB / 0.562 GB, free: 12.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002705/0.3802, allocations: 1.928 MB / 0.5639 GB, free: 10.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3802, allocations: 0 / 0.5639 GB, free: 10.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003312/0.3836, allocations: 0.8717 MB / 0.5648 GB, free: 9.969 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * 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 {(4,16,68.8%), (2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004765/0.3883, allocations: 4.806 MB / 0.5695 GB, free: 5.086 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00533/0.3937, allocations: 4.001 MB / 0.5734 GB, free: 1.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3937, allocations: 0 / 0.5734 GB, free: 1.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.136/0.5296, allocations: 1.587 MB / 0.5749 GB, free: 159.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/0.5318, allocations: 449.7 kB / 0.5754 GB, free: 159.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04087/0.5727, allocations: 33.35 MB / 0.6079 GB, free: 139 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00198/0.5747, allocations: 2.275 MB / 0.6102 GB, free: 137.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001956/0.5766, allocations: 1.328 MB / 0.6115 GB, free: 135.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.5777, allocations: 1.461 MB / 0.6129 GB, free: 134.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5777, allocations: 4 kB / 0.6129 GB, free: 134.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06945/0.6471, allocations: 59.71 MB / 0.6712 GB, free: 75.27 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.999/10.65, allocations: 5.5 kB / 0.6712 GB, free: 75.27 MB / 474.7 MB " [Timeout remaining time 649] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.463156534358859] Failed to read output from testmodel.py, exit status != 0: 10.770468659698963 10.777147764 10.594834219 Calling exit ...