Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.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.001919/0.001919, allocations: 119.6 kB / 17.16 MB, free: 5.914 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.002408/0.002408, allocations: 211 kB / 20.13 MB, free: 2.969 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.601/1.601, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.05066/0.05066, allocations: 9.225 MB / 318.8 MB, free: 15.55 MB / 254.1 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.VehicleComponents.Examples.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics 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.002045/0.002045, allocations: 74.48 kB / 443.2 MB, free: 39.56 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1127, allocations: 55.43 MB / 498.7 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.007353/0.1201, allocations: 8.626 MB / 0.4954 GB, free: 14.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005481/0.1256, allocations: 2.771 MB / 0.4981 GB, free: 11.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.1266, allocations: 43.88 kB / 0.4982 GB, free: 11.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008435/0.1275, allocations: 381.4 kB / 0.4985 GB, free: 10.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003246/0.1307, allocations: 1.428 MB / 0.4999 GB, free: 9.406 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004717/0.1312, allocations: 167.7 kB / 0.5001 GB, free: 9.242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002946/0.1341, allocations: 2.499 MB / 0.5025 GB, free: 6.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009775/0.1351, allocations: 0.7447 MB / 0.5032 GB, free: 5.961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001198/0.1363, allocations: 0.9183 MB / 0.5041 GB, free: 5.039 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001824/0.1381, allocations: 1.432 MB / 0.5055 GB, free: 3.602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005595/0.1387, allocations: 228 kB / 0.5058 GB, free: 3.379 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001864/0.1405, allocations: 0.9323 MB / 0.5067 GB, free: 2.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001465/0.142, allocations: 1.231 MB / 0.5079 GB, free: 1.211 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001934/0.1439, allocations: 1.545 MB / 0.5094 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007422/0.1514, allocations: 5.05 MB / 0.5143 GB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1514, allocations: 0 / 0.5143 GB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1514, allocations: 0 / 0.5143 GB, free: 10.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001561/0.1515, allocations: 4 kB / 0.5143 GB, free: 10.58 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1162 * Number of variables: 1162 Notification: Performance of Generate backend data structure: time 0.01944/0.171, allocations: 5.143 MB / 0.5193 GB, free: 5.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.171, allocations: 12.03 kB / 0.5193 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001226/0.1711, allocations: 79.88 kB / 0.5194 GB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001253/0.1724, allocations: 0.535 MB / 0.5199 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007306/0.1797, allocations: 1.797 MB / 0.5217 GB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00333/0.183, allocations: 1.445 MB / 0.5231 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.1832, allocations: 151.7 kB / 0.5233 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005974/0.1838, allocations: 199.8 kB / 0.5234 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01613/0.1999, allocations: 8.448 MB / 0.5317 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.387e-05/0.2, allocations: 19.81 kB / 0.5317 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003274/0.2003, allocations: 91.86 kB / 0.5318 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003332/0.2037, allocations: 1.891 MB / 0.5337 GB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01838/0.222, allocations: 8.121 MB / 0.5416 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04176/0.2638, allocations: 25.91 MB / 0.5669 GB, free: 3.688 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/0.2744, allocations: 2.753 MB / 0.5696 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001822/0.2762, allocations: 1.017 MB / 0.5706 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008007/0.2842, allocations: 5.029 MB / 0.5755 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/0.2842, allocations: 51.86 kB / 0.5755 GB, free: 10.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=155): time 3.777e-06/0.2842, allocations: 0 / 0.5755 GB, free: 10.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=173): time 0.02098/0.3052, allocations: 8.425 MB / 0.5838 GB, free: 1.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/0.3053, allocations: 68.72 kB / 0.5838 GB, free: 1.582 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2755/0.5808, allocations: 2.615 MB / 0.5864 GB, free: 88.94 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004143/0.5812, allocations: 48.17 kB / 0.5864 GB, free: 88.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.583, allocations: 2.136 MB / 0.5885 GB, free: 88.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000759/0.5838, allocations: 0.664 MB / 0.5892 GB, free: 87.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/0.5849, allocations: 0.8109 MB / 0.5899 GB, free: 87.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.611e-05/0.585, allocations: 308.7 kB / 0.5902 GB, free: 87.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00222/0.5872, allocations: 1.369 MB / 0.5916 GB, free: 87.07 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003016/0.5902, allocations: 3.534 MB / 0.595 GB, free: 83.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006567/0.5968, allocations: 5.309 MB / 0.6002 GB, free: 79.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.868e-05/0.5969, allocations: 22.72 kB / 0.6002 GB, free: 79.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.008198/0.6051, allocations: 5.118 MB / 0.6052 GB, free: 77.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.703e-05/0.6051, allocations: 37.16 kB / 0.6053 GB, free: 77.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.297e-05/0.6052, allocations: 74.81 kB / 0.6053 GB, free: 77.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007778/0.6059, allocations: 317 kB / 0.6056 GB, free: 77.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002377/0.6083, allocations: 0.8999 MB / 0.6065 GB, free: 77.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002966/0.6113, allocations: 3.299 MB / 0.6097 GB, free: 75.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002572/0.6139, allocations: 197 kB / 0.6099 GB, free: 75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002921/0.6141, allocations: 234.4 kB / 0.6102 GB, free: 74.96 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 342 * Number of states: 0 () * Number of discrete variables: 9 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (490): * Single equations (assignments): 484 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001812/0.616, allocations: 1.572 MB / 0.6117 GB, free: 74.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003889/0.6163, allocations: 237.6 kB / 0.6119 GB, free: 74.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003485/0.6198, allocations: 2.342 MB / 0.6142 GB, free: 72.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.54e-05/0.6199, allocations: 30 kB / 0.6142 GB, free: 72.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.6199, allocations: 4 kB / 0.6142 GB, free: 72.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.62, allocations: 6.703 kB / 0.6142 GB, free: 72.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007892/0.6278, allocations: 6.213 MB / 0.6203 GB, free: 66.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.6279, allocations: 4 kB / 0.6203 GB, free: 66.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009301/0.6288, allocations: 251.7 kB / 0.6206 GB, free: 66.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000575/0.6294, allocations: 218.7 kB / 0.6208 GB, free: 66.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.323e-05/0.6294, allocations: 39.66 kB / 0.6208 GB, free: 66.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002306/0.6317, allocations: 2.859 MB / 0.6236 GB, free: 63.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.6317, allocations: 4 kB / 0.6236 GB, free: 63.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004016/0.6358, allocations: 3.595 MB / 0.6271 GB, free: 59.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006458/0.6364, allocations: 319.5 kB / 0.6274 GB, free: 59.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002668/0.6367, allocations: 28 kB / 0.6274 GB, free: 59.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008538/0.6375, allocations: 69.17 kB / 0.6275 GB, free: 59.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/0.6377, allocations: 101 kB / 0.6276 GB, free: 59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.82e-05/0.6378, allocations: 52 kB / 0.6277 GB, free: 58.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001947/0.6397, allocations: 1.695 MB / 0.6293 GB, free: 57.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6397, allocations: 0 / 0.6293 GB, free: 57.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002704/0.6425, allocations: 0.6952 MB / 0.63 GB, free: 56.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (prismatic.s,prismatic.v,revolute.phi,revolute.w,engineTorque.phi,inertia.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 (138): * Single equations (assignments): 132 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00435/0.6468, allocations: 4.259 MB / 0.6341 GB, free: 52.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004622/0.6514, allocations: 3.349 MB / 0.6374 GB, free: 48.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.6514, allocations: 0 / 0.6374 GB, free: 48.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.6527, allocations: 1.171 MB / 0.6386 GB, free: 47.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.6546, allocations: 397.4 kB / 0.6389 GB, free: 47.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03124/0.6858, allocations: 29.07 MB / 0.6673 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002018/0.6878, allocations: 2.591 MB / 0.6699 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002388/0.6902, allocations: 1.23 MB / 0.6711 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/0.6916, allocations: 1.327 MB / 0.6724 GB, free: 10.23 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6916, allocations: 0 / 0.6724 GB, free: 10.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09395/0.7855, allocations: 49.99 MB / 0.7212 GB, free: 8.496 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/18.96, allocations: 11.67 kB / 0.7212 GB, free: 8.488 MB / 494.1 MB " [Timeout remaining time 641] (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel_fmu --startTime=0 --stopTime=20 --stepSize=0.008 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.17849165899679] Failed to read output from testmodel.py, exit status != 0: 19.14584324299358 19.174244602 19.017754297 Calling exit ...