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.00213/0.00213, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002322/0.002322, allocations: 209.4 kB / 23.04 MB, free: 5.074 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.501/1.501, allocations: 230.6 MB / 256.8 MB, free: 8.047 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.04927/0.04927, allocations: 9.243 MB / 322.5 MB, free: 10.08 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.002004/0.002004, allocations: 67.91 kB / 448.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1364, allocations: 55.48 MB / 0.4922 GB, free: 7.531 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.01106/0.1475, allocations: 8.654 MB / 0.5006 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006363/0.1539, allocations: 2.78 MB / 0.5034 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.1551, allocations: 39.88 kB / 0.5034 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009985/0.1561, allocations: 377.5 kB / 0.5038 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003796/0.1599, allocations: 1.443 MB / 0.5052 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006996/0.1606, allocations: 179.7 kB / 0.5053 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003659/0.1643, allocations: 2.51 MB / 0.5078 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.1655, allocations: 0.7256 MB / 0.5085 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001495/0.167, allocations: 0.9105 MB / 0.5094 GB, free: 5.828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002246/0.1692, allocations: 1.444 MB / 0.5108 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005561/0.1698, allocations: 232 kB / 0.511 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00206/0.1719, allocations: 0.9323 MB / 0.5119 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.1734, allocations: 1.227 MB / 0.5131 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002023/0.1754, allocations: 1.542 MB / 0.5146 GB, free: 448 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2587/0.4341, allocations: 5.045 MB / 0.5196 GB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.4341, allocations: 0.7031 kB / 0.5196 GB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4341, allocations: 0.8125 kB / 0.5196 GB, free: 11.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002078/0.4343, allocations: 0 / 0.5196 GB, free: 11.77 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.02107/0.4554, allocations: 5.074 MB / 0.5245 GB, free: 10.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.4554, allocations: 11.08 kB / 0.5245 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001577/0.4556, allocations: 73.75 kB / 0.5246 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001234/0.4568, allocations: 0.5366 MB / 0.5251 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008092/0.4649, allocations: 1.802 MB / 0.5269 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004454/0.4693, allocations: 1.38 MB / 0.5282 GB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.4695, allocations: 146.4 kB / 0.5284 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00111/0.4706, allocations: 196.9 kB / 0.5286 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02084/0.4915, allocations: 8.458 MB / 0.5368 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.995e-05/0.4916, allocations: 22.69 kB / 0.5368 GB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003993/0.492, allocations: 88.17 kB / 0.5369 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003523/0.4955, allocations: 1.882 MB / 0.5388 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02054/0.516, allocations: 8.132 MB / 0.5467 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04615/0.5622, allocations: 25.83 MB / 0.5719 GB, free: 11.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/0.5727, allocations: 2.309 MB / 0.5742 GB, free: 8.961 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001885/0.5746, allocations: 1.017 MB / 0.5752 GB, free: 7.945 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00682/0.5814, allocations: 3.148 MB / 0.5782 GB, free: 4.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.5814, allocations: 48.44 kB / 0.5783 GB, free: 4.766 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.277e-06/0.5815, allocations: 2.625 kB / 0.5783 GB, free: 4.766 MB / 414.1 MB Notification: Performance of matching and sorting (n=173): time 0.02108/0.6025, allocations: 8.118 MB / 0.5862 GB, free: 12.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.47e-05/0.6026, allocations: 67.62 kB / 0.5863 GB, free: 12.56 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004416/0.607, allocations: 2.626 MB / 0.5889 GB, free: 9.906 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003184/0.6073, allocations: 49.7 kB / 0.5889 GB, free: 9.852 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002043/0.6094, allocations: 2.14 MB / 0.591 GB, free: 7.719 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/0.6105, allocations: 0.6593 MB / 0.5916 GB, free: 7.066 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001546/0.612, allocations: 0.8134 MB / 0.5924 GB, free: 6.246 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.6122, allocations: 305.1 kB / 0.5927 GB, free: 5.945 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002556/0.6148, allocations: 1.37 MB / 0.5941 GB, free: 4.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004534/0.6193, allocations: 3.537 MB / 0.5975 GB, free: 16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007461/0.6268, allocations: 5.299 MB / 0.6027 GB, free: 9.965 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.022e-05/0.6268, allocations: 24 kB / 0.6027 GB, free: 9.941 MB / 446.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.0125/0.6393, allocations: 5.116 MB / 0.6077 GB, free: 5.066 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.6394, allocations: 36 kB / 0.6077 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001589/0.6396, allocations: 77.59 kB / 0.6078 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.6406, allocations: 324.8 kB / 0.6081 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003792/0.6444, allocations: 0.9007 MB / 0.609 GB, free: 3.734 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005011/0.6494, allocations: 3.181 MB / 0.6121 GB, free: 456 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/0.6537, allocations: 189 kB / 0.6123 GB, free: 268 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001354/0.6551, allocations: 240 kB / 0.6125 GB, free: 28 kB / 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.005296/0.6604, allocations: 1.577 MB / 0.6141 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/0.6616, allocations: 238.4 kB / 0.6143 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006474/0.668, allocations: 2.343 MB / 0.6166 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001156/0.6681, allocations: 27.98 kB / 0.6166 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.6682, allocations: 0 / 0.6166 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.649e-05/0.6682, allocations: 11.97 kB / 0.6166 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.6829, allocations: 6.174 MB / 0.6226 GB, free: 5.539 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.6829, allocations: 4.344 kB / 0.6226 GB, free: 5.535 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.684, allocations: 258.7 kB / 0.6229 GB, free: 5.285 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007081/0.6847, allocations: 216.9 kB / 0.6231 GB, free: 5.07 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001557/0.6849, allocations: 35.98 kB / 0.6231 GB, free: 5.035 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003597/0.6885, allocations: 2.763 MB / 0.6258 GB, free: 2.176 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.6885, allocations: 4 kB / 0.6258 GB, free: 2.172 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006696/0.6952, allocations: 3.598 MB / 0.6294 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008562/0.696, allocations: 242.4 kB / 0.6296 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006044/0.6966, allocations: 38.72 kB / 0.6296 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/0.6979, allocations: 64.48 kB / 0.6297 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.6982, allocations: 105.1 kB / 0.6298 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/0.6983, allocations: 51.98 kB / 0.6298 GB, free: 14.03 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003905/0.7022, allocations: 1.691 MB / 0.6315 GB, free: 12.32 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7022, allocations: 0 / 0.6315 GB, free: 12.32 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005153/0.7074, allocations: 0.694 MB / 0.6322 GB, free: 11.63 MB / 478.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.007356/0.7147, allocations: 4.258 MB / 0.6363 GB, free: 7.309 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006411/0.7211, allocations: 3.28 MB / 0.6395 GB, free: 4.031 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.7212, allocations: 0 / 0.6395 GB, free: 4.031 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002109/0.7233, allocations: 1.093 MB / 0.6406 GB, free: 2.922 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002786/0.7261, allocations: 390.9 kB / 0.641 GB, free: 2.555 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05522/0.7813, allocations: 29.14 MB / 0.6694 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00356/0.7848, allocations: 2.588 MB / 0.6719 GB, free: 15.98 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.003326/0.7882, allocations: 1.228 MB / 0.6731 GB, free: 14.75 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002417/0.7906, allocations: 1.326 MB / 0.6744 GB, free: 13.42 MB / 0.5138 GB Notification: Performance of SimCode: time 1.002e-06/0.7906, allocations: 4 kB / 0.6744 GB, free: 13.42 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3558/1.146, allocations: 53.33 MB / 0.7265 GB, free: 184.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.94/22.09, allocations: 7.875 kB / 0.7265 GB, free: 184.7 MB / 0.545 GB " [Timeout remaining time 638] (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: 25.105304308002815] Failed to read output from testmodel.py, exit status != 0: 22.293551372014917 22.315335014 21.876976505 Calling exit ...